Skip to content
This repository has been archived by the owner on Jul 26, 2018. It is now read-only.

Conversion of AppGer.gf and AppFre.gf to .Pgf not working #35

Open
RejiKumar3333 opened this issue Apr 26, 2018 · 10 comments
Open

Conversion of AppGer.gf and AppFre.gf to .Pgf not working #35

RejiKumar3333 opened this issue Apr 26, 2018 · 10 comments

Comments

@RejiKumar3333
Copy link

$ make AppGer.pgf
mkdir -p ./gfos && gf -s -make -literal=PN,Symb -probs=./app.probs -gfo-dir ./gfos -name=AppGer AppGer.gf
gf: out of memory (requested 1048576 bytes)
Makefile:61: recipe for target 'AppGer.pgf' failed
make: *** [AppGer.pgf] Error 251

when trying to convert AppGer.gf and AppFre.gf to .Pgf,i am getting out of memory error.kindly need help for the same.Any help would be much appreciated.
Thanks in advance.

@krangelov
Copy link
Member

krangelov commented Apr 26, 2018 via email

@RejiKumar3333
Copy link
Author

RejiKumar3333 commented Apr 26, 2018

Thanks for the reply.
Where exactly do we need memory?is it OS ram you are talking about?And if yes, how much ram do we need?i am having 16GB RAM.
Is it possible that you can compile both files to .pgf and post out here for me please.
or
could you suggest me any alternative,so that i can get App.pgf that includes grammar definition for all 17 languages.My ultimate goal here is to get AppLang_c for all 17 languages.E.g: AppEng.pgf_c,AppGer.pgf_c,AppFre.pgf_c,etc...
Thanks.

@krangelov
Copy link
Member

krangelov commented Apr 26, 2018 via email

@inariksit
Copy link
Member

@nitro91 Can you try giving +RTS -K100M -RTS as an argument to gf? Or try a bigger amount of memory if 100M is not enough.

The whole command is this:
mkdir -p ./gfos && gf +RTS -K100M -RTS -s -make -literal=PN,Symb -probs=./app.probs -gfo-dir ./gfos -name=AppGer AppGer.gf

@RejiKumar3333
Copy link
Author

Thank you all for your replies.Now i got AppGer.pgf file but still no luck with AppFre.pgf. I got AppGer.pgf by editing the make file with the below code:
AppGer.pgf:: ; $(GFMKT) -name=AppGer AppGer.gf +RTS -K100M.
but when tried the same with AppFre.gf, it says out of memory.
Any help would be much appreciated.
Thanks again.

@inariksit
Copy link
Member

@nitro91 Try more than 100M of memory, for instance 500M.
If it doesn't work, I can try myself and upload a compiled AppFre.pgf (if I manage to compile it) later today.

@RejiKumar3333
Copy link
Author

Did anyone managed to get AppFre.pgf? or is there any alternative to get App.pgf consisting of all 17 language's grammar?

@inariksit
Copy link
Member

@RejiKumar3333
Copy link
Author

Thanks. How did you managed to get AppFre.pgf file.Which configuration did you used ? Why Iam asking this is we are not getting it correctly.The same error is arising again(Out of memory).

os -name=AppFre AppFre.gf +RTS -K500M
gf: out of memory (requested 1048576 bytes)
Makefile:64: recipe for target 'AppFre.pgf' failed
make: *** [AppFre.pgf] Error 251

@inariksit
Copy link
Member

@nitro91 I actually just found that PGF on the grammaticalframework.org server, I suppose it was compiled on that same machine.

Did you try what Krasimir suggested? "Sometimes French fails to compile but then if I run the make file once more it succeeds. I guess that with the given memory the compiler manages to do part of the compilation and the output is stored in the .gfo files. On the second run it does the rest."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants