public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang] parser: conform block line feeds with the spec
@ 2024-10-08 16:33 Carlos Maniero
  2024-10-08 16:33 ` [olang/patches/.build.yml] build failed builds.sr.ht
  2024-10-08 18:38 ` [PATCH olang] parser: conform block line feeds with the spec Johnny Richard
  0 siblings, 2 replies; 36+ messages in thread
From: Carlos Maniero @ 2024-10-08 16:33 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero

The line feeds has been handled by the statement parser functions when
the olang spec describe this grammar rule as a block responsibility.

There was also a FIXME related to allowing line feeds in between the
if/else statement and the block start that was also addressed.

Signed-off-by: Carlos Maniero <carlos@maniero.me>
---
 src/parser.c                            | 47 ++++++++++++++-----------
 tests/olc/0031_else_extra_line_feeds.ol | 30 ++++++++++++++++
 2 files changed, 57 insertions(+), 20 deletions(-)
 create mode 100644 tests/olc/0031_else_extra_line_feeds.ol

diff --git a/src/parser.c b/src/parser.c
index d16b79d..2096129 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -70,6 +70,9 @@ parser_parse_factor(parser_t *parser);
 static void
 skip_line_feeds(lexer_t *lexer);
 
+static void
+peek_next_non_lf_token(lexer_t *lexer, token_t *token);
+
 void
 parser_init(parser_t *parser, lexer_t *lexer, arena_t *arena)
 {
@@ -493,6 +496,12 @@ StartLoop:
         return NULL;
     }
 
+    if (!skip_expected_token(parser, TOKEN_LF)) {
+        return NULL;
+    }
+
+    skip_line_feeds(parser->lexer);
+
     list_append(node_block->as_block.nodes, node);
 
     goto StartLoop;
@@ -522,11 +531,6 @@ parser_parse_return_stmt(parser_t *parser)
     ast_node_t *node_return_stmt = ast_new_node_return_stmt(parser->arena, token_ret.loc, expr);
     assert(node_return_stmt);
 
-    if (!skip_expected_token(parser, TOKEN_LF)) {
-        return NULL;
-    }
-    skip_line_feeds(parser->lexer);
-
     return node_return_stmt;
 }
 
@@ -544,6 +548,8 @@ parser_parse_if_stmt(parser_t *parser)
         return NULL;
     }
 
+    skip_line_feeds(parser->lexer);
+
     ast_node_t *then = parser_parse_block(parser);
 
     if (then == NULL) {
@@ -553,29 +559,25 @@ parser_parse_if_stmt(parser_t *parser)
     ast_node_t *_else = NULL;
 
     token_t next_token;
-    lexer_next_token(parser->lexer, &next_token);
-
-    // FIXME: We are not allowing line feed right after if block statement when
-    //        the else branch is present.  We also noticed that if has the same
-    //        problem which will be addressed later.
+    peek_next_non_lf_token(parser->lexer, &next_token);
 
     if (next_token.kind == TOKEN_ELSE) {
+        skip_line_feeds(parser->lexer);
+        lexer_next_token(parser->lexer, &next_token);
+        skip_line_feeds(parser->lexer);
+
         _else = parser_parse_block(parser);
 
         if (_else == NULL) {
             return NULL;
         }
 
-    } else if (!expected_token(&next_token, TOKEN_LF)) {
-        return NULL;
     }
 
     ast_node_t *node_if_stmt = ast_new_node_if_stmt(parser->arena, token_if.loc, cond, then, _else);
 
     assert(node_if_stmt);
 
-    skip_line_feeds(parser->lexer);
-
     return node_if_stmt;
 }
 
@@ -608,8 +610,6 @@ parser_parse_var_def(parser_t *parser)
 
     ast_node_t *var_node = ast_new_node_var_def(parser->arena, token_id.loc, token_id.value, var_type, expr);
 
-    skip_line_feeds(parser->lexer);
-
     return var_node;
 }
 
@@ -631,10 +631,6 @@ parser_parse_var_assign_stmt(parser_t *parser)
     ast_node_t *ref = ast_new_node_ref(parser->arena, token_id.loc, token_id.value);
     ast_node_t *expr = parser_parse_expr(parser);
 
-    // FIXME: The expected line feed should be parsed from parent call
-    //        according to the grammar rules
-    skip_line_feeds(parser->lexer);
-
     return ast_new_node_var_assign_stmt(parser->arena, token_eq.loc, ref, expr);
 }
 
@@ -683,3 +679,14 @@ skip_line_feeds(lexer_t *lexer)
         lexer_peek_next(lexer, &token);
     }
 }
+
+static void
+peek_next_non_lf_token(lexer_t *lexer, token_t *token)
+{
+    lexer_cursor_t cur = lexer->cur;
+
+    skip_line_feeds(lexer);
+    lexer_peek_next(lexer, token);
+
+    lexer->cur = cur;
+}
diff --git a/tests/olc/0031_else_extra_line_feeds.ol b/tests/olc/0031_else_extra_line_feeds.ol
new file mode 100644
index 0000000..bc44ccd
--- /dev/null
+++ b/tests/olc/0031_else_extra_line_feeds.ol
@@ -0,0 +1,30 @@
+# Copyright (C) 2024 olang mantainers
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
+fn main(): u32
+{
+  if 0 != 0
+  {
+    return 1
+  }
+  else
+  {
+    return 0
+  }
+}
+
+# TEST test_compile(exit_code=0)
+
+# TEST test_run_binary(exit_code=0)

base-commit: 3c8975ba27c87d084187eefe622cbd783e289c99
-- 
2.46.0


^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-10-08 16:33 [PATCH olang] parser: conform block line feeds with the spec Carlos Maniero
@ 2024-10-08 16:33 ` builds.sr.ht
  2024-10-08 18:38 ` [PATCH olang] parser: conform block line feeds with the spec Johnny Richard
  1 sibling, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-10-08 16:33 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 18s

[parser: conform block line feeds with the spec][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/55389
[1]: mailto:carlos@maniero.me

✗ #1346505 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1346505

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH olang] parser: conform block line feeds with the spec
  2024-10-08 16:33 [PATCH olang] parser: conform block line feeds with the spec Carlos Maniero
  2024-10-08 16:33 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-10-08 18:38 ` Johnny Richard
  2024-10-08 22:38   ` Carlos Maniero
  1 sibling, 1 reply; 36+ messages in thread
From: Johnny Richard @ 2024-10-08 18:38 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

Thanks. applied with a format-fix

To git.sr.ht:~johnnyrichard/olang
   3c8975b..f0a565d  main -> main

---->8----
Subject: [PATCH olang] fixup! parser: conform block line feeds with the spec


diff --git a/src/parser.c b/src/parser.c
index 2096129..94e8a1e 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -571,7 +571,6 @@ parser_parse_if_stmt(parser_t *parser)
         if (_else == NULL) {
             return NULL;
         }
-
     }
 
     ast_node_t *node_if_stmt = ast_new_node_if_stmt(parser->arena, token_if.loc, cond, then, _else);


^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH olang] parser: conform block line feeds with the spec
  2024-10-08 18:38 ` [PATCH olang] parser: conform block line feeds with the spec Johnny Richard
@ 2024-10-08 22:38   ` Carlos Maniero
  0 siblings, 0 replies; 36+ messages in thread
From: Carlos Maniero @ 2024-10-08 22:38 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

Thanks for the fixup! :)

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-10-17  2:49 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-10-17  2:52   ` Carlos Maniero
  0 siblings, 0 replies; 36+ messages in thread
From: Carlos Maniero @ 2024-10-17  2:52 UTC (permalink / raw)
  To: builds.sr.ht; +Cc: ~johnnyrichard/olang-devel

I broke the format :(

I'll wait for the review before submitting a v2.

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-10-17  2:48 [PATCH olang v1 1/1] codegen: x64: deref returns pointer value Carlos Maniero
@ 2024-10-17  2:49 ` builds.sr.ht
  2024-10-17  2:52   ` Carlos Maniero
  0 siblings, 1 reply; 36+ messages in thread
From: builds.sr.ht @ 2024-10-17  2:49 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 20s

[deref operation returning value][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/55515
[1]: mailto:carlos@maniero.me

✗ #1352279 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1352279

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-10-15 12:14 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-10-15 23:03   ` Carlos Maniero
  0 siblings, 0 replies; 36+ messages in thread
From: Carlos Maniero @ 2024-10-15 23:03 UTC (permalink / raw)
  To: builds.sr.ht; +Cc: ~johnnyrichard/olang-devel

There is an issue unrelated to my changes. The spec that does not allows
comments inside.

I sent another patch [1] that will fix the spec.

[1]: Message-ID: <20241015225750.211129-2-carlos@maniero.me>.

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-10-15 12:14 [PATCH olang] fix: codegen: prevent stack overwrite Carlos Maniero
@ 2024-10-15 12:14 ` builds.sr.ht
  2024-10-15 23:03   ` Carlos Maniero
  0 siblings, 1 reply; 36+ messages in thread
From: builds.sr.ht @ 2024-10-15 12:14 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 28s

[fix: codegen: prevent stack overwrite][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/55483
[1]: mailto:carlos@maniero.me

✗ #1350731 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1350731

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-10-11  3:42 [PATCH olang v1] fix: build: add missing dependencies for check-spec Johnny Richard
@ 2024-10-11  1:43 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-10-11  1:43 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 21s

[fix: build: add missing dependencies for check-spec][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/55427
[1]: mailto:johnny@johnnyrichard.com

✗ #1348643 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1348643

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-08-13 17:27 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-08-13 19:03   ` Johnny Richard
  0 siblings, 0 replies; 36+ messages in thread
From: Johnny Richard @ 2024-08-13 19:03 UTC (permalink / raw)
  To: builds.sr.ht; +Cc: ~johnnyrichard/olang-devel

My bad... I have made these changes on top of patches not applied on
main branch.


^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-08-13 18:16 [PATCH olang v1 2/2] ast: inline ast_node_data_t union definition Johnny Richard
@ 2024-08-13 17:27 ` builds.sr.ht
  2024-08-13 19:03   ` Johnny Richard
  0 siblings, 1 reply; 36+ messages in thread
From: builds.sr.ht @ 2024-08-13 17:27 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 29s

[refactor: ast: inline union typedefs][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/54446
[1]: mailto:johnny@johnnyrichard.com

✗ #1302361 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1302361

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-04-20 13:54 [PATCH olang v1] build: rename linter to format to avoid confusion Johnny Richard
@ 2024-04-20 12:57 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-04-20 12:57 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 39s

[build: rename linter to format to avoid confusion][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/51175
[1]: mailto:johnny@johnnyrichard.com

✗ #1200225 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1200225

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-03-28 14:59 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-03-28 16:46   ` Johnny Richard
  0 siblings, 0 replies; 36+ messages in thread
From: Johnny Richard @ 2024-03-28 16:46 UTC (permalink / raw)
  To: builds.sr.ht; +Cc: ~johnnyrichard/olang-devel

On Thu, Mar 28, 2024 at 02:59:02PM +0000, builds.sr.ht wrote:
> olang/patches/.build.yml: FAILED in 36s
> 
> [fe: lexer: add single line comments support][0] from [Johnny Richard][1]
> 
> [0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/50503
> [1]: mailto:johnny@johnnyrichard.com
> 
> ✗ #1181030 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1181030

This build is failing due to a clang bumped version on Arch Linux
repositories.  It was a major bump from 16 to 17 (it has breaking
changes).

We can solve this problem by fixing the version or by bumping our clang
locally.  I will upgrade my clang meanwhile.

Please, consider the patch to fix it.

---->8----
Subject: [PATCH olang] fixup! fe: lexer: add single line comments support


diff --git a/src/pretty_print_ast.c b/src/pretty_print_ast.c
index e950796..129f090 100644
--- a/src/pretty_print_ast.c
+++ b/src/pretty_print_ast.c
@@ -26,7 +26,7 @@
 
 #define ANSI_COLOR_MAGENTA "\x1b[35m"
 #define ANSI_COLOR_RESET "\x1b[0m"
-#define PP_IS_BIT_SET(data, index) ((data)&1 << index)
+#define PP_IS_BIT_SET(data, index) ((data) & 1 << index)
 
 typedef struct pretty_print_node
 {

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-28 15:58 [PATCH olang v1] fe: lexer: add single line comments support Johnny Richard
@ 2024-03-28 14:59 ` builds.sr.ht
  2024-03-28 16:46   ` Johnny Richard
  0 siblings, 1 reply; 36+ messages in thread
From: builds.sr.ht @ 2024-03-28 14:59 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 36s

[fe: lexer: add single line comments support][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/50503
[1]: mailto:johnny@johnnyrichard.com

✗ #1181030 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1181030

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-27  3:21 [PATCH olang v1 2/2] docs: spec: add variables and constants specification Carlos Maniero
@ 2024-03-27  3:22 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-03-27  3:22 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 35s

[docs: variables specification][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/50474
[1]: mailto:carlos@maniero.me

✗ #1179573 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1179573

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-03-26  2:32   ` Carlos Maniero
@ 2024-03-26  2:35     ` Carlos Maniero
  0 siblings, 0 replies; 36+ messages in thread
From: Carlos Maniero @ 2024-03-26  2:35 UTC (permalink / raw)
  To: Carlos Maniero, builds.sr.ht, Johnny Richard; +Cc: ~johnnyrichard/olang-devel

oops!

s/see/be

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-03-25 21:37 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-03-26  2:32   ` Carlos Maniero
  2024-03-26  2:35     ` Carlos Maniero
  0 siblings, 1 reply; 36+ messages in thread
From: Carlos Maniero @ 2024-03-26  2:32 UTC (permalink / raw)
  To: builds.sr.ht, Johnny Richard; +Cc: ~johnnyrichard/olang-devel

The failed pipeline seems to see a sourcehut issue.

Tested locally and all fine.

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-25 22:36 [PATCH olang v1 2/2] cli: remove code duplication Johnny Richard
@ 2024-03-25 21:37 ` builds.sr.ht
  2024-03-26  2:32   ` Carlos Maniero
  0 siblings, 1 reply; 36+ messages in thread
From: builds.sr.ht @ 2024-03-25 21:37 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 40s

[Introduce CLI option for improved AST tree visualization][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/50448
[1]: mailto:johnny@johnnyrichard.com

✗ #1178386 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1178386

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-13 12:32 [PATCH olang v3] refactor: rename zero programming language to olang Fabio Maciel
@ 2024-03-13 12:33 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-03-13 12:33 UTC (permalink / raw)
  To: Fabio Maciel; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 31s

[refactor: rename zero programming language to olang][0] v3 from [Fabio Maciel][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/50187
[1]: mailto:fabio@fabiomaciel.com

✗ #1167852 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1167852

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-08 20:52 [PATCH olang] parser: abort when parser identifies a syntax error Johnny Richard
@ 2024-03-08 19:54 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-03-08 19:54 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 30s

[parser: abort when parser identifies a syntax error][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/50088
[1]: mailto:johnny@johnnyrichard.com

✗ #1164684 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1164684

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-05  8:44 [PATCH olang v2 3/3] cli: add compilation -o option with --save-temps Johnny Richard
@ 2024-03-05  7:51 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-03-05  7:51 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 12s

[implement assembly linux x86_64 compiler][0] v2 from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49994
[1]: mailto:johnny@johnnyrichard.com

✗ #1162085 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1162085

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-03-04 19:39   ` Johnny Richard
@ 2024-03-05  2:05     ` Carlos Maniero
  0 siblings, 0 replies; 36+ messages in thread
From: Carlos Maniero @ 2024-03-05  2:05 UTC (permalink / raw)
  To: Johnny Richard, ~johnnyrichard/olang-devel

The checks passed just fine in my environment too.

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [olang/patches/.build.yml] build failed
  2024-03-04 18:33 ` [olang/patches/.build.yml] build failed builds.sr.ht
@ 2024-03-04 19:39   ` Johnny Richard
  2024-03-05  2:05     ` Carlos Maniero
  0 siblings, 1 reply; 36+ messages in thread
From: Johnny Richard @ 2024-03-04 19:39 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel

On Mon, Mar 04, 2024 at 06:33:31PM +0000, builds.sr.ht wrote:
> olang/patches/.build.yml: FAILED in 12s
> 
> [implement assembly linux x86_64 compiler][0] from [Johnny Richard][1]
> 
> [0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49981
> [1]: mailto:johnny@johnnyrichard.com
> 
> ✗ #1161742 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1161742

I not sure what is happening, the build works find on my machine.  Looks
like the CI machines are failing to setup the environment, nothing to do
with my changes I believe:

    [#1161745] 2024/03/04 18:36:41 Booting image archlinux (default) on port 22563
    [#1161745] 2024/03/04 18:36:42 Waiting for guest to settle
    [#1161745] 2024/03/04 18:36:49 Sending tasks
    [#1161745] 2024/03/04 18:36:52 Sending build environment
    [#1161745] 2024/03/04 18:36:53 Installing packages
    Warning: Permanently added '[localhost]:22563' (ED25519) to the list of known hosts.
    :: Synchronizing package databases...
     core downloading...
     extra downloading...
     multilib downloading...
    warning: archlinux-keyring-20240208-1 is up to date -- skipping
     there is nothing to do
    Warning: Permanently added '[localhost]:22563' (ED25519) to the list of known hosts.
    error: missing dependency 'initramfs' for package 'linux'
    linux: ignoring package upgrade (6.7.6.arch1-1 => 6.7.8.arch1-1)
    mkinitcpio: ignoring package upgrade (37.3-1 => 38-3)
    Resolving dependencies...
    Checking package conflicts...
    :: uninstalling package 'mkinitcpio-37.3-1' due to conflict with 'cryptsetup-2.7.0-3'
    [#1161745] 2024/03/04 18:36:54 Processing post-failed triggers...
    [#1161745] 2024/03/04 18:36:54 Sending webhook...
    [#1161745] 2024/03/04 18:36:54 Webhook response: 200
    [#1161745] 2024/03/04 18:36:54 Thanks!
    [#1161745] 2024/03/04 18:36:54 Build failed.
    [#1161745] 2024/03/04 18:36:54 The build environment will be kept alive for 10 minutes.
    [#1161745] 2024/03/04 18:36:54 To log in with SSH and examine it, use the following command:
    [#1161745] 2024/03/04 18:36:54
    [#1161745] 2024/03/04 18:36:54 	ssh -t builds@fra02.builds.sr.ht connect 1161745
    [#1161745] 2024/03/04 18:36:54
    [#1161745] 2024/03/04 18:36:54 After logging in, the deadline is increased to your remaining build time.


^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-04 19:23 [PATCH olang v1 3/3] cli: add compilation -o option with --save-temps Johnny Richard
@ 2024-03-04 18:33 ` builds.sr.ht
  2024-03-04 19:39   ` Johnny Richard
  0 siblings, 1 reply; 36+ messages in thread
From: builds.sr.ht @ 2024-03-04 18:33 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 12s

[implement assembly linux x86_64 compiler][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49981
[1]: mailto:johnny@johnnyrichard.com

✗ #1161742 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1161742

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-02 20:01 [PATCH olang] string_view: fix stack buffer overflow on to_u32 Johnny Richard
@ 2024-03-02 19:02 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-03-02 19:02 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 36s

[string_view: fix stack buffer overflow on to_u32][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49949
[1]: mailto:johnny@johnnyrichard.com

✗ #1160713 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1160713

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-03-02 19:02 [PATCH olang] string_view: add n + 1 test to string_view_to_u32 function Johnny Richard
@ 2024-03-02 18:03 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-03-02 18:03 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 40s

[string_view: add n + 1 test to string_view_to_u32 function][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49946
[1]: mailto:johnny@johnnyrichard.com

✗ #1160663 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1160663

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-20 16:39 [PATCH olang v2] utils: add arena Carlos Maniero
@ 2024-02-20 16:45 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-20 16:45 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 36s

[utils: add arena][0] v2 from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49708
[1]: mailto:carlos@maniero.me

✗ #1154158 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1154158

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-20 16:10 [PATCH olang] utils: add arena Carlos Maniero
@ 2024-02-20 16:15 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-20 16:15 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 36s

[utils: add arena][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49707
[1]: mailto:carlos@maniero.me

✗ #1154146 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1154146

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-19 21:04 [PATCH olang v4 4/4] lexer: test: add integration tests for --dump-tokens Johnny Richard
@ 2024-02-19 20:07 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-19 20:07 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 42s

[Create --dump-tokens on compiler cli][0] v4 from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49682
[1]: mailto:johnny@johnnyrichard.com

✗ #1153624 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1153624

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-19  1:23 [PATCH olang v2 2/2] lexer: create --dump-tokens cli command Johnny Richard
@ 2024-02-19  0:27 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-19  0:27 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 34s

[Create --dump-tokens on compiler cli][0] v2 from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49641
[1]: mailto:johnny@johnnyrichard.com

✗ #1153051 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1153051

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-19  1:15 [PATCH olang 2/2] lexer: create --dump-tokens cli command Johnny Richard
@ 2024-02-19  0:20 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-19  0:20 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 31s

[Create --dump-tokens on compiler cli][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49640
[1]: mailto:johnny@johnnyrichard.com

✗ #1153048 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1153048

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-17 13:46 [PATCH olang 2/2] Revert "docs: add sphinx documentation support" Carlos Maniero
@ 2024-02-17 13:51 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-17 13:51 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 18s

[remove sphinx dependency][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49598
[1]: mailto:carlos@maniero.me

✗ #1151949 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1151949

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-17  4:23 [PATCH olang] docs: add HACKING documentation Carlos Maniero
@ 2024-02-17  4:23 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-17  4:23 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 19s

[docs: add HACKING documentation][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49586
[1]: mailto:carlos@maniero.me

✗ #1151773 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1151773

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-16  2:58 [PATCH olang v2 2/2] tests: add integration test setup Carlos Maniero
@ 2024-02-16  3:03 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-16  3:03 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 15s

[Add integration tests][0] v2 from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49556
[1]: mailto:carlos@maniero.me

✗ #1151085 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1151085

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-14 23:36 [PATCH olang] style: fix clang-format format indentation Carlos Maniero
@ 2024-02-14 23:41 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-14 23:41 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 16s

[style: fix clang-format format indentation][0] from [Carlos Maniero][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49522
[1]: mailto:carlos@maniero.me

✗ #1150343 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1150343

^ permalink raw reply	[flat|nested] 36+ messages in thread

* [olang/patches/.build.yml] build failed
  2024-02-13 21:36 [PATCH olang] build: enable continuous integration through .build.yml Johnny Richard
@ 2024-02-13 20:34 ` builds.sr.ht
  0 siblings, 0 replies; 36+ messages in thread
From: builds.sr.ht @ 2024-02-13 20:34 UTC (permalink / raw)
  To: Johnny Richard; +Cc: ~johnnyrichard/olang-devel

olang/patches/.build.yml: FAILED in 13s

[build: enable continuous integration through .build.yml][0] from [Johnny Richard][1]

[0]: https://lists.sr.ht/~johnnyrichard/olang-devel/patches/49459
[1]: mailto:johnny@johnnyrichard.com

✗ #1149170 FAILED olang/patches/.build.yml https://builds.sr.ht/~johnnyrichard/job/1149170

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2024-10-17  2:53 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-08 16:33 [PATCH olang] parser: conform block line feeds with the spec Carlos Maniero
2024-10-08 16:33 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-10-08 18:38 ` [PATCH olang] parser: conform block line feeds with the spec Johnny Richard
2024-10-08 22:38   ` Carlos Maniero
  -- strict thread matches above, loose matches on Subject: below --
2024-10-17  2:48 [PATCH olang v1 1/1] codegen: x64: deref returns pointer value Carlos Maniero
2024-10-17  2:49 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-10-17  2:52   ` Carlos Maniero
2024-10-15 12:14 [PATCH olang] fix: codegen: prevent stack overwrite Carlos Maniero
2024-10-15 12:14 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-10-15 23:03   ` Carlos Maniero
2024-10-11  3:42 [PATCH olang v1] fix: build: add missing dependencies for check-spec Johnny Richard
2024-10-11  1:43 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-08-13 18:16 [PATCH olang v1 2/2] ast: inline ast_node_data_t union definition Johnny Richard
2024-08-13 17:27 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-08-13 19:03   ` Johnny Richard
2024-04-20 13:54 [PATCH olang v1] build: rename linter to format to avoid confusion Johnny Richard
2024-04-20 12:57 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-28 15:58 [PATCH olang v1] fe: lexer: add single line comments support Johnny Richard
2024-03-28 14:59 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-28 16:46   ` Johnny Richard
2024-03-27  3:21 [PATCH olang v1 2/2] docs: spec: add variables and constants specification Carlos Maniero
2024-03-27  3:22 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-25 22:36 [PATCH olang v1 2/2] cli: remove code duplication Johnny Richard
2024-03-25 21:37 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-26  2:32   ` Carlos Maniero
2024-03-26  2:35     ` Carlos Maniero
2024-03-13 12:32 [PATCH olang v3] refactor: rename zero programming language to olang Fabio Maciel
2024-03-13 12:33 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-08 20:52 [PATCH olang] parser: abort when parser identifies a syntax error Johnny Richard
2024-03-08 19:54 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-05  8:44 [PATCH olang v2 3/3] cli: add compilation -o option with --save-temps Johnny Richard
2024-03-05  7:51 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-04 19:23 [PATCH olang v1 3/3] cli: add compilation -o option with --save-temps Johnny Richard
2024-03-04 18:33 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-04 19:39   ` Johnny Richard
2024-03-05  2:05     ` Carlos Maniero
2024-03-02 20:01 [PATCH olang] string_view: fix stack buffer overflow on to_u32 Johnny Richard
2024-03-02 19:02 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-02 19:02 [PATCH olang] string_view: add n + 1 test to string_view_to_u32 function Johnny Richard
2024-03-02 18:03 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-20 16:39 [PATCH olang v2] utils: add arena Carlos Maniero
2024-02-20 16:45 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-20 16:10 [PATCH olang] utils: add arena Carlos Maniero
2024-02-20 16:15 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-19 21:04 [PATCH olang v4 4/4] lexer: test: add integration tests for --dump-tokens Johnny Richard
2024-02-19 20:07 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-19  1:23 [PATCH olang v2 2/2] lexer: create --dump-tokens cli command Johnny Richard
2024-02-19  0:27 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-19  1:15 [PATCH olang 2/2] lexer: create --dump-tokens cli command Johnny Richard
2024-02-19  0:20 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-17 13:46 [PATCH olang 2/2] Revert "docs: add sphinx documentation support" Carlos Maniero
2024-02-17 13:51 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-17  4:23 [PATCH olang] docs: add HACKING documentation Carlos Maniero
2024-02-17  4:23 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-16  2:58 [PATCH olang v2 2/2] tests: add integration test setup Carlos Maniero
2024-02-16  3:03 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-14 23:36 [PATCH olang] style: fix clang-format format indentation Carlos Maniero
2024-02-14 23:41 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-13 21:36 [PATCH olang] build: enable continuous integration through .build.yml Johnny Richard
2024-02-13 20:34 ` [olang/patches/.build.yml] build failed builds.sr.ht

Code repositories for project(s) associated with this public inbox

	https://git.johnnyrichard.com/olang.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox