Bug#766482: cernlib: FTBFS on arm64

Edmund Grimley Evans edmund.grimley.evans at gmail.com
Thu Oct 23 13:24:05 UTC 2014


Source: cernlib
Version: 20061220+dfsg3-4.1

It failed to build on arm64:

http://buildd.debian.org/status/package.php?p=cernlib&suite=sid

The error was:

gcc -g OptimizationLevel -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security
-I/«BUILDDIR»/cernlib-20061220+dfsg3/build/packlib/kuip
-I/«BUILDDIR»/cernlib-20061220+dfsg3/src/packlib/kuip
-I/«BUILDDIR»/cernlib-20061220+dfsg3/src/packlib/kuip/programs/kuipc
-I/«BUILDDIR»/cernlib-20061220+dfsg3/src/include    -DFUNCPROTO=15
-DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX
-DCERNLIB_QMGLIBC                                  -DCERNLIB_VERBOSE
-DCERNLIB_DEBIAN -DDEBIAN_VERSION=\"20061220+dfsg3-4.1\"
-DCERNLIB_QGETCWD -DCERNLIB_GFORTRAN   -c -o kuipcc.o
/«BUILDDIR»/cernlib-20061220+dfsg3/src/packlib/kuip/programs/kuipc/kuipcc.c
gcc: error: OptimizationLevel: No such file or directory

I believe this can be fixed as follows:

In src/config/Imake.cf, in the "linux" section, at line 1022, add 6
lines that are identical to the preceding 7 lines for "amd64" except
that you test for and undef just __aarch64__ and set ARM64Architecture.

In src/config/linux.cf, at line 386, add 11 non-empty lines that are
identical to the preceding 13 non-empty lines for "AMD64" except that
"AMD64" is replaced by "ARM64", "__x86_64__" is replaced by
"__aarch64__", and the lines that mention "CERNLIB_QMLXIA64" are
deleted.

Then those two changes can be turned into a patch that can be
installed at debian/patches/140-arm64.dpatch, say, if that's how the
patch numbering scheme is supposed to work.



More information about the debian-science-maintainers mailing list