tags 179803 + patch
thanks
On 2005-05-16, Will Newton wrote:
> The relevant gcc bug is:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18592
>
> It looks like gcc 4.0 fixes the problem.
Hello,
the attached patch works around the nasty gcc bug but the binaries are
still segfaulting. Unfortunately they cannot be debugged when compiled
with -O2. I will try a build with -O0.
Regards,
Torsten
diff -ruN erlang-old/configure erlang-10.b.5/configure
diff -ruN erlang-old/debian/changelog erlang-10.b.5/debian/changelog
--- erlang-old/debian/changelog 2005-05-26 13:06:44.000000000 +0200
+++ erlang-10.b.5/debian/changelog 2005-05-26 13:12:13.000000000 +0200
@@ -1,3 +1,9 @@
+erlang (1:10.b.5-2) unstable; urgency=low
+
+ * workaround for buggy gcc, closes: 179803
+
+ -- Torsten Werner <[EMAIL PROTECTED]> Thu, 26 May 2005 13:11:40 +0200
+
erlang (1:10.b.5-1) unstable; urgency=low
* Upload sponsored by Will Newton.
diff -ruN erlang-old/debian/gcc erlang-10.b.5/debian/gcc
--- erlang-old/debian/gcc 1970-01-01 01:00:00.000000000 +0100
+++ erlang-10.b.5/debian/gcc 2005-05-26 13:09:00.000000000 +0200
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/usr/bin/gcc "$@" || /usr/bin/gcc "$@" -O1
+
diff -ruN erlang-old/debian/rules erlang-10.b.5/debian/rules
--- erlang-old/debian/rules 2005-05-26 13:06:44.000000000 +0200
+++ erlang-10.b.5/debian/rules 2005-05-26 13:45:17.000000000 +0200
@@ -6,6 +6,7 @@
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
VERSION=$(shell cat erts/vsn.mk | grep "^VSN" | sed "s/VSN = //")
+CC := $(shell pwd)/debian/gcc
ifneq ($(DEB_HOST_GNU_TYPE), x86_64-linux)
HIPE=--disable-hipe
@@ -32,7 +33,8 @@
(cd $${i} && autoconf2.13) \
done
- ./configure --prefix=/usr --libexecdir=/usr/bin \
+ chmod +x $(CC)
+ CC=$(CC) ./configure --prefix=/usr --libexecdir=/usr/bin \
--infodir=/usr/share/info --mandir=/usr/share/man \
--enable-threads $(HIPE)
diff -ruN erlang-old/erts/configure erlang-10.b.5/erts/configure
diff -ruN erlang-old/lib/configure erlang-10.b.5/lib/configure
diff -ruN erlang-old/lib/erl_interface/configure
erlang-10.b.5/lib/erl_interface/configure
diff -ruN erlang-old/lib/gs/configure erlang-10.b.5/lib/gs/configure
diff -ruN erlang-old/lib/megaco/configure erlang-10.b.5/lib/megaco/configure
diff -ruN erlang-old/Makefile erlang-10.b.5/Makefile