-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling TRMorph on Mac OSX gives error #9
Comments
It seems to be a known issue with the Clang on MacOS. Using standard gcc preprocessor seems to be the easier solution. There are some discussion of how to solve the exact same issue here. If installing/using standard gcc is not an option, please let me know. It should be posible to change the source to make sure it also compiles with Clang preprocessor. |
I also had issues on my mac, but I just compiled the fst file on a Linux computer and I can just use the fst file with foma on my mac. Maybe it's possible to have an "official" compiled fst file in this repository? |
I am writing this for future reference for people running into this issue, in case Cagri doesn't have time to fix this one. The workaround is quite simple, and only depends on Homebrew. People often use Homebrew to install foma on OS/X anyway. The way I work around this issue is:
Hope this helps. |
Installing & using GCC is not an option for me. Could a solution be to replace all #'s with a reference to a new lexicon ENDLEX, and then define that lexicon as follows?
That should hopefully resolve the issue, by "protecting" the hash mark using the preceding text. |
That pull request only solves the issue with #. Now I have a number of the following errors:
The problem seems to be the sequence |
I compiled foma successfully and having issues with TRMorph on Mac.
I try to compile TRMorh on Mac OSX but getting problem. Can you help me?
orph.lexc:892:22: error: invalid preprocessing directive
#;
^
morph.lexc:947:22: error: invalid preprocessing directive
#;
^
morph.lexc:982:18: error: invalid preprocessing directive
#;
^
morph.lexc:995:18: error: invalid preprocessing directive
The text was updated successfully, but these errors were encountered: