Your message dated Thu, 29 May 2008 17:30:23 +0100
with message-id <[EMAIL PROTECTED]>
and subject line mercury has been removed from Debian, closing #297217
has caused the Debian Bug report #297217,
regarding mercury: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
297217: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297217
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mercury
Severity: normal
Tags: patch
When building 'mercury' on amd64 with gcc-4.0,
I get the following error:
../scripts/mgnuc --grade hlc.gc --no-mercury-stdlib-dir --c-debug
--no-ansi -- -I../boehm_gc -I../boehm_gc/include -I../mps_gc/code
-DMERCURY_BOOTSTRAP_H -DMERCURY_CONF_BOOTSTRAP_H -c mercury_deep_copy.c -o
mercury_deep_copy.o
In file included from mercury_deep_copy.c:52:
mercury_deep_copy_body.h: In function 'MR_deep_copy':
mercury_deep_copy_body.h:387: error: invalid lvalue in assignment
mercury_deep_copy_body.h:425: error: invalid lvalue in assignment
mercury_deep_copy_body.h: In function 'MR_deep_copy_type_info':
mercury_deep_copy_body.h:762: error: invalid lvalue in assignment
mercury_deep_copy_body.h:771: error: invalid lvalue in assignment
mercury_deep_copy_body.h: In function 'MR_deep_copy_typeclass_info':
mercury_deep_copy_body.h:831: error: invalid lvalue in assignment
make[3]: *** [mercury_deep_copy.o] Error 1
make[3]: Leaving directory `/mercury-0.11.0.rotd.20040511/build/mercury/runtime'
With the attached patch 'mercury' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN
../tmp-orig/mercury-0.11.0.rotd.20040511/debian/patches/004-gcc4-fix.diff
./debian/patches/004-gcc4-fix.diff
--- ../tmp-orig/mercury-0.11.0.rotd.20040511/debian/patches/004-gcc4-fix.diff
1970-01-01 00:00:00.000000000 +0000
+++ ./debian/patches/004-gcc4-fix.diff 2005-02-27 22:38:50.305442176 +0000
@@ -0,0 +1,22 @@
+diff -urN tmp/mercury/runtime/mercury_regs.h mercury/runtime/mercury_regs.h
+--- tmp/mercury/runtime/mercury_regs.h 2005-02-27 22:35:19.102208000 +0000
++++ mercury/runtime/mercury_regs.h 2005-02-27 22:36:53.030078485 +0000
+@@ -19,15 +19,9 @@
+ ** Similarly for comma expressions and conditional expressions.
+ */
+
+-#ifdef __GNUC__
+- #define MR_LVALUE_CAST(type, lval) ((type)(lval))
+- #define MR_LVALUE_SEQ(expr, lval) ((expr),(lval))
+- #define MR_LVALUE_COND(expr, x, y) ((expr)?(x):(y))
+-#else
+- #define MR_LVALUE_CAST(type, lval) (*(type*)&(lval))
+- #define MR_LVALUE_SEQ(expr, lval) (*((expr),&(lval)))
+- #define MR_LVALUE_COND(expr, x, y) (*((expr)?&(x):&(y)))
+-#endif
++#define MR_LVALUE_CAST(type, lval) (*(type*)&(lval))
++#define MR_LVALUE_SEQ(expr, lval) (*((expr),&(lval)))
++#define MR_LVALUE_COND(expr, x, y) (*((expr)?&(x):&(y)))
+
+ #define MR_fake_reg (MR_ENGINE(MR_eng_fake_reg))
+
--- End Message ---
--- Begin Message ---
Version: 0.11.0.rotd.20040511-5+rm
The mercury package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.
For more information about this package's removal, read
http://bugs.debian.org/446665 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.
Don't hesitate to reply to this mail if you have any question.
Thank you for your contribution to Debian.
--
Marco Rodrigues
http://Marco.Tondela.org
--- End Message ---