bug-mes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building TCC with the upcoming Mes 0.26


From: Timothy Sample
Subject: Building TCC with the upcoming Mes 0.26
Date: Wed, 22 Nov 2023 18:37:57 -0600
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

I was able to build ‘tcc-boot’ (from Guix’s “commencement.scm”) with Mes
from the “wip” branch (on x86).  I had to update the ‘stage0-posix’
package to 1.6.0, and then it was a matter of two small issues.

The first was that I had to revert the ‘bootstrap.sh’ changes from
commit 0d3c4ddc4bcb57db690ee8ebab106fa6fda75823.  Not sure what that’s
about.  We might have to make the changes optional or something (maybe
there’s already a plan in place?).

The second was an issue with the ‘__raise’ stub.  It is fixed by the
attached patch.


-- Tim

>From 5513c8875b7374c60367c1453c7cb54884232052 Mon Sep 17 00:00:00 2001
From: Timothy Sample <samplet@ngyro.com>
Date: Wed, 22 Nov 2023 13:50:18 -0600
Subject: [PATCH] lib: Do not define '__raise' if it is a macro.

See 0e31ee6ef0c285740ff89f99ecef6cd24da3f6bc.

* lib/stub/__raise.c (__raise): Do not define the function if it is
already a macro.
---
 lib/stub/__raise.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/stub/__raise.c b/lib/stub/__raise.c
index bfa9853cb..152c4c6b1 100644
--- a/lib/stub/__raise.c
+++ b/lib/stub/__raise.c
@@ -18,8 +18,12 @@
  * along with GNU Mes.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __raise
+
 int
 __raise (int signum)
 {
   return -1;
 }
+
+#endif
-- 
2.41.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]