Control: tags -1 patch

On Thu, 12 Feb 2015 10:37:22 +0000 Matthias Klose <[email protected]> wrote:
> The package fails to build in a test rebuild on at least amd64 with
> gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The
> severity of this report may be raised before the stretch release.

Hi,

I had a look at this. tcsh was hanging inside its custom calloc
implementation. This was because GCC 5 now optimizes a malloc, memset
sequence into a calloc sequence, but this caused the custom calloc to
call itself and enter an infinite loop.

One solution would be to rename some of these custom memory
implementations. The other easier solution is to disable this
optimization using -fno-builtin. This is what I've done in the attached
patch.

Thanks,
James
diff -u -r a/debian/rules b/debian/rules
--- a/debian/rules	2015-04-27 16:19:31.000000000 +0100
+++ b/debian/rules	2015-04-27 16:19:48.437365906 +0100
@@ -6,7 +6,7 @@
 -include /usr/share/dpkg/buildflags.mk
 export CPPFLAGS CFLAGS LDFLAGS
 
-CFLAGS += -D_FILE_OFFSET_BITS=64
+CFLAGS += -D_FILE_OFFSET_BITS=64 -fno-builtin
 
 %:
 	dh --with quilt $@

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to