[Debichem-devel] Bug#1012177: apbs: vf2c [punc] uninit.c FTBFS on mips64el, mipsel

Drew Parsons dparsons at debian.org
Tue May 31 14:22:31 BST 2022


Package: apbs
Version: 3.4.1-2
Severity: serious
Justification: FTBFS
Control: forwarded -1 https://github.com/Electrostatics/FETK/issues/71

vf2c (punc component) is failing to build on MIPS architecture (specifically mip64el and 32-bit mipsel) on Debian Linux. The problem arises in uninit.c

There is a __mips section in uninit.c with

#ifdef __mips	/* must link with -lfpe */
#define IEEE0_done
/* code from Eric Grosse */
#include <stdlib.h>
#include <stdio.h>
#include "/usr/include/sigfpe.h"        /* full pathname for lcc -N */
#include "/usr/include/sys/fpu.h"

A standard build attempt fails since these header files don't exist (with gcc on linux). A full build log can be found here.

If I skip that section by patching to

#if defined (__mips) && !defined (__linux__)

then the build fails with

[  9%] Building C object _deps/fetk-build/punc/src/vf2c/CMakeFiles/vf2c.dir/uninit.c.o
cd /<<PKGBUILDDIR>>/obj-mips64el-linux-gnuabi64/_deps/fetk-build/punc/src/vf2c && /usr/bin/cc -Dvf2c_EXPORTS -I/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c -I/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/punc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fcommon -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -O2 -g -DNDEBUG -fPIC -fPIC -MD -MT _deps/fetk-build/punc/src/vf2c/CMakeFiles/vf2c.dir/uninit.c.o -MF CMakeFiles/vf2c.dir/uninit.c.o.d -o CMakeFiles/vf2c.dir/uninit.c.o -c /<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c: In function ‘ieee0’:
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:302:17: error: ‘_FPU_MASK_IM’ undeclared (first use in this function)
  302 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                 ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:302:17: note: each undeclared identifier is reported only once for each function it appears in
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:302:32: error: ‘_FPU_MASK_ZM’ undeclared (first use in this function)
  302 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                                ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:302:47: error: ‘_FPU_MASK_OM’ undeclared (first use in this function)
  302 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                                               ^~~~~~~~~~~~
make[3]: *** [_deps/fetk-build/punc/src/vf2c/CMakeFiles/vf2c.dir/build.make:331: _deps/fetk-build/punc/src/vf2c/CMakeFiles/vf2c.dir/uninit.c.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-mips64el-linux-gnuabi64'
make[2]: *** [CMakeFiles/Makefile2:764: _deps/fetk-build/punc/src/vf2c/CMakeFiles/vf2c.dir/all] Error 2

Full build log here. This error also occurs on riscv64.

mipsel (32-bit) gives the same build errors as mips64el.


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apbs depends on:
ii  apbs-data                            3.4.1-2
ii  libamd2                              1:5.12.0+dfsg-1
ii  libapbs3                             3.4.1-2
ii  libarpack2                           3.8.0-1
ii  libatlas3-base [libblas.so.3]        3.10.3-12
ii  libblas3 [libblas.so.3]              3.10.1-2
ii  libblis3-openmp [libblas.so.3]       0.8.1-2
ii  libblis3-pthread [libblas.so.3]      0.8.1-2
ii  libc6                                2.33-7
ii  libcamd2                             1:5.12.0+dfsg-1
ii  libccolamd2                          1:5.12.0+dfsg-1
ii  libcholmod3                          1:5.12.0+dfsg-1
ii  libcolamd2                           1:5.12.0+dfsg-1
ii  libfetk1.9                           3.4.1-2
ii  libgomp1                             12.1.0-2
ii  libjs-mathjax                        2.7.9+dfsg-1
ii  libmaloc1                            1.5-1
ii  libopenblas0-openmp [libblas.so.3]   0.3.20+ds-2
ii  libopenblas0-pthread [libblas.so.3]  0.3.20+ds-2
ii  libopenmpi3                          4.1.3-2
ii  libspqr2                             1:5.12.0+dfsg-1
ii  libstdc++6                           12.1.0-2
ii  libsuitesparseconfig5                1:5.12.0+dfsg-1
ii  libsuperlu5                          5.3.0+dfsg1-2
ii  libumfpack5                          1:5.12.0+dfsg-1

apbs recommends no packages.

apbs suggests no packages.

-- no debconf information


More information about the Debichem-devel mailing list