[Debian-med-packaging] Trying to disable error=format-security for clapack

Andreas Tille andreas at an3as.eu
Thu May 26 11:17:02 UTC 2016


Hi Gianfranco,

On Sun, May 22, 2016 at 06:48:36AM +0000, Gianfranco Costamagna wrote:
> ...
> I would say: remove the add_subdirectory (line 21)
> and then:
> 1) create a "FindF2C.cmake" file and use it as helper
> (that would be the best and upstreamable choice
> you can find some examples in "ettercap/cmake/Modules/Find*"

thanks to these hints I managed to build against Debian packaged libf2c.
This involved adding two files missing in libf2c source which I took
over as a patch. 

I can confirm that I builded several times on my local disk successfully
including the build time tests.  At first this did not worked until I
made sure that Debian's default CFLAGS are also used for libf2c.  Once I
have uploaded libf2c2 version 20130926-1 the build somehow stopped
working again.  I can not even reproduce things with a local rebuild.
I always get something like:

...
      Start 76: xeigtstd_lse_in
76/76 Test #76: xeigtstd_lse_in ..................***Failed    0.01 sec
Running: /home/tillea/debian-maintain/alioth/debian-science/git/packages/build-area/clapack-3.2.1/obj-x86_64-linux-gnu/TESTING/EIG//xeigtstd
ARGS= OUTPUT_FILE;/home/tillea/debian-maintain/alioth/debian-science/git/packages/build-area/clapack-3.2.1/obj-x86_64-linux-gnu/TESTING/dlse.out;ERROR_FILE;/home/tillea/debian-maintain/alioth/debian-science/git/packages/build-area/clapack-3.2.1/obj-x86_64-linux-gnu/TESTING/dlse.out.err;INPUT_FILE;/home/tillea/debian-maintain/alioth/debian-science/git/packages/build-area/clapack-3.2.1/TESTING/lse.in
CMake Error at /home/tillea/debian-maintain/alioth/debian-science/git/packages/build-area/clapack-3.2.1/TESTING/runtest.cmake:29 (message):
  Test
  /home/tillea/debian-maintain/alioth/debian-science/git/packages/build-area/clapack-3.2.1/obj-x86_64-linux-gnu/TESTING/EIG//xeigtstd
  returned Segmentation fault


(for all the 76 tests not just the last one).  Please note that I'm
skipping those tests mentioned by Danny Edel[1] inside the patch
skip_tests_triggering_stack_overflow.patch (see updated Git[2]).

So what I'd like to know:  What's the difference between building the
code copy of libf2c comming with clapack (which can be proved by
deactivating use_debian_packaged_f2c.patch) and using libf2c2.  (Bonus
question is what I have done differently when it worked here with local
builds of libf2c2 when it worked as well - but it might need more than
super power brain reading abilities. :-()

Any help would be welcome

      Andreas.

[1] https://lists.debian.org/debian-mentors/2016/05/msg00406.html
[2] https://anonscm.debian.org/git/debian-science/packages/clapack.git

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list