Linking Error

14 views
Skip to first unread message

Shafqat Virk

unread,
May 16, 2012, 3:42:04 AM5/16/12
to gf-...@googlegroups.com
Hi,
I get the following linking error, while importing Hindi resource grammar with a bigger Hindi lexicon.

linking ... src/compiler/GF/Compile/GrammarToPGF.hs:216:11-73: Irrefutable pattern failed for pattern GF.Data.ErrM.Ok ty_C

BR

Krasimir Angelov

unread,
May 16, 2012, 4:09:00 AM5/16/12
to gf-...@googlegroups.com
It is hard to say what is the case. This happens because some error in
the grammar is not detected by the earlier phases in the compiler. In
particular the compiler is trying to process some 'lin' definition for
which there is no definition in the abstract syntax. It could be also
that you forgot to add some abstract syntax module. Try to remove
stuff from the grammar until it start working and then add them back
until you find what exactly caused the problem.

Regards,
Krasimir


2012/5/16 Shafqat Virk <virk.s...@gmail.com>:

Shafqat Virk

unread,
May 16, 2012, 4:18:31 AM5/16/12
to gf-...@googlegroups.com
The, problem for sure is in the bigger lexicon, as the grammar links properly with LexiconHin, but not with my bigger lexicon. But, If I compile the lexicon separately, it works fine. I wonder it will be hard to try by removing some of the entries from the bigger lexicon.
Best  

Krasimir Angelov

unread,
May 16, 2012, 4:20:46 AM5/16/12
to gf-...@googlegroups.com
Then it might be something with the imports.

2012/5/16 Shafqat Virk <virk.s...@gmail.com>:

Shafqat Virk

unread,
May 16, 2012, 4:57:01 AM5/16/12
to gf-...@googlegroups.com
Its strange, the grammars links successfully if I comment all the lins, but even if I have one lin rule in the concrete grammar then it gives the error. This means the problem is not with any particular lin, but something more general. This also means the problem is not related to imports as well. What can I do even if does not link with even a single linearization rule.
Best

On Wednesday, May 16, 2012 9:42:04 AM UTC+2, Shafqat Virk wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages