Compiler error

Damien Bouvarel dams.bouvarel at wanadoo.fr
Thu Aug 27 11:59:14 UTC 2009


> On 02:36 Thu 27 Aug , Damien Bouvarel wrote:
> > Hello!
> >
> > I started to convert the opengl binding into lisaac 0.14 but i'm facing weird
> > errors:
> >
> > Incorrect name (filename != name).
> > Line 24 column 19 in LOG (.../fog.li)
> > - name := FOG;
>
> What is this stange ".../fog.li" ? 3 dots seems weird

Sorry, i was too lazy too write the full path... The things is "in LOG(/home/.../fog.li)", LOG and fog.li.

But the problem disappeared as a switched to linux :) and correctly installed the compiler.

Now i'm facing a compiler segfault:
Depending pass: ....Segmentation fault

> Can you setup a repository with the source that trigger the error?

Yes, the repositories are git/lisaac/libraries/opengl-binding.git
git/lisaac/libraries/math.git
git/lisaac/libraries/examples.git

You can use the eclipse mode ;)
- Switch your workspace to libraries/examples/
- Create a new lisaac project named "chess" or "gl_test"
- remove the generated src/ and update the make.lip
- Open a main prototype (chess.li, my_scene1.li, ...) and click Run.

To install the latest plugin:
- Import plugin project in compiler/editor/eclipse/, export to jar file, copy it to your eclipse/plugins (with others default plugins), reboot eclipse.

Or simply use the command-line to compile the examples ^^.

> Or can you compile the compiler with debug enabled, and use it to
> compile your source and give us the stack trace to where the feature is
> not implemented?

Ok, here is the stack trace of the segfault:
Depending pass: ....
============== BOTTOM ==============
Line #612 Column #9 in LISAAC (/home/dams/GIT/compiler/src/lisaac.li).
- main <-
^
Line #671 Column #31 in LISAAC (/home/dams/GIT/compiler/src/lisaac.li).
type_input.prototype.depend;
^
Line #298 Column #5 in PROTOTYPE (/home/dams/GIT/compiler/src/type/prototype.li).
};
^
Line #75 Column #5 in BLOCK (/home/dams/GIT/compiler/lib/base/block.li).
};
^
Line #67 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #73 Column #16 in BLOCK (/home/dams/GIT/compiler/lib/base/block.li).
body.value;
^
Line #297 Column #22 in PROTOTYPE (/home/dams/GIT/compiler/src/type/prototype.li).
NODE.extend_pass;
^
Line #62 Column #5 in NODE (/home/dams/GIT/compiler/src/dispatcher/node.li).
};
^
Line #75 Column #5 in BLOCK (/home/dams/GIT/compiler/lib/base/block.li).
};
^
Line #67 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #73 Column #16 in BLOCK (/home/dams/GIT/compiler/lib/base/block.li).
body.value;
^
Line #56 Column #38 in NODE (/home/dams/GIT/compiler/src/dispatcher/node.li).
is_ok := node_list.item j.update;
^
Line #95 Column #2 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
);
^
Line #202 Column #5 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
};
^
Line #52 Column #21 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
false_block.value;
^
Line #201 Column #7 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
};
^
Line #166 Column #5 in NUMERIC (/home/dams/GIT/compiler/lib/number/low_level/numeric.li).
};
^
Line #67 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #164 Column #20 in NUMERIC (/home/dams/GIT/compiler/lib/number/low_level/numeric.li).
blc.value Self;
^
Line #199 Column #57 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
data.update_branch (list.item j.code) self new_type_self;
^
Line #101 Column #5 in DTA (/home/dams/GIT/compiler/src/dispatcher/dta.li).
};
^
Line #52 Column #21 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
false_block.value;
^
Line #100 Column #7 in DTA (/home/dams/GIT/compiler/src/dispatcher/dta.li).
};
^
Line #67 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #99 Column #27 in DTA (/home/dams/GIT/compiler/src/dispatcher/dta.li).
node.update_link type_self;
^
Line #102 Column #2 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
);
^
Line #202 Column #5 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
};
^
Line #52 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #188 Column #7 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
};
^
Line #67 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #186 Column #59 in NODE_TYPE (/home/dams/GIT/compiler/src/dispatcher/node_type.li).
result := data.update_branch first_code self new_type_self;
^
Line #101 Column #5 in DTA (/home/dams/GIT/compiler/src/dispatcher/dta.li).
};
^
Line #52 Column #21 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
false_block.value;
^
Line #96 Column #32 in DTA (/home/dams/GIT/compiler/src/dispatcher/dta.li).
node.update_link type_self;
^
Line #116 Column #5 in NODE_STYLE (/home/dams/GIT/compiler/src/dispatcher/node_style.li).
};
^
Line #52 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #91 Column #7 in NODE_STYLE (/home/dams/GIT/compiler/src/dispatcher/node_style.li).
};
^
Line #67 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #90 Column #49 in NODE_STYLE (/home/dams/GIT/compiler/src/dispatcher/node_style.li).
first_code := call_for first_type self self_type;
^
Line #304 Column #5 in NODE_STYLE (/home/dams/GIT/compiler/src/dispatcher/node_style.li).
};
^
Line #52 Column #21 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
false_block.value;
^
Line #266 Column #77 in NODE_STYLE (/home/dams/GIT/compiler/src/dispatcher/node_style.li).
(my_profil, wrt_lst) := slot_cod.get_profil new_larg self new_type_self;
^
Line #146 Column #5 in SLOT_CODE (/home/dams/GIT/compiler/src/variable/slot_code.li).
};
^
Line #52 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #143 Column #82 in SLOT_CODE (/home/dams/GIT/compiler/src/variable/slot_code.li).
res_lst := result.make Self with (type_self, args) verify (profil.count = 1);
^
Line #157 Column #34 in PROFIL_SLOT (/home/dams/GIT/compiler/src/profil_slot.li).
slot_code.create_code is_first;
^
Line #222 Column #31 in SLOT_CODE (/home/dams/GIT/compiler/src/variable/slot_code.li).
result := value.to_run_expr;
^
Line #89 Column #5 in ITM_READ (/home/dams/GIT/compiler/src/item/itm_read.li).
};
^
Line #52 Column #21 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
false_block.value;
^
Line #88 Column #42 in ITM_READ (/home/dams/GIT/compiler/src/item/itm_read.li).
result := to_run_with NULL args NULL;
^
Line #135 Column #2 in ITM_READ (/home/dams/GIT/compiler/src/item/itm_read.li).
);
^
Line #257 Column #5 in ITM_READ (/home/dams/GIT/compiler/src/item/itm_read.li).
};
^
Line #83 Column #5 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
};
^
Line #52 Column #20 in TRUE (/home/dams/GIT/compiler/lib/base/true.li).
true_block.value;
^
Line #80 Column #17 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
block.value;
^
Line #244 Column #57 in ITM_READ (/home/dams/GIT/compiler/src/item/itm_read.li).
receiver rec self (args.first) intern implicit_self;
^
Line #82 Column #63 in NODE (/home/dams/GIT/compiler/src/dispatcher/node.li).
dta := DTA_RD.create p call s self my_self intern is_intern;
^
Line #62 Column #46 in DTA_RD (/home/dams/GIT/compiler/src/dispatcher/dta_rd.li).
result.make p call sl self arg intern flag;
^
Line #71 Column #34 in DTA_RD (/home/dams/GIT/compiler/src/dispatcher/dta_rd.li).
result_expr := get_expr_result;
^
Line #98 Column #5 in DTA_RD (/home/dams/GIT/compiler/src/dispatcher/dta_rd.li).
};
^
Line #52 Column #21 in FALSE (/home/dams/GIT/compiler/lib/base/false.li).
false_block.value;
^
Line #97 Column #50 in DTA_RD (/home/dams/GIT/compiler/src/dispatcher/dta_rd.li).
result := slot.result_type.get_expr_for Self;
^
Line #63 Column #2 in ITM_TYPE_MONO (/home/dams/GIT/compiler/src/item/itm_type_mono.li).
);
^
================ TOP ===============
Call on NULL


> > Both log.li and fog.li exists, the compiler seems confused?
> >
> > Without the -no_debug i have Sorry, Some Feature is not yet implemented.

Ok, this error was due to the old [] syntax.

> > I compiled the bin/lisaac.c directly without full lisaac installation process.
> > Damien
>
>
> --
> ,''`. ** Xavier Oswald 
> : :' : ** Research Engineer
> `. `' ** GNU/LINUX Debian Developer (http://debian.org)
> `- ** Isaac Project Developer (http://isaacproject.u-strasbg.fr/)
>
> _______________________________________________
> Lisaac-devel mailing list
> Lisaac-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/lisaac-devel




More information about the Lisaac-devel mailing list