Comments (5)
I just submitted a PR adding the Makefile I got from the tar.gz file mentioned here.
from foma.
I closed the PR given that the missing Makefile is justified. The projected moved to cmake
. I didn't find the instructions to use cmake
. I tried
% cmake .
-- Checking for one of the modules 'readline'
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/ar/Temp/foma/x/foma-ar/foma
ar@tenis foma % make
[ 1%] [BISON][Bregex] Building parser with bison 2.3
/Users/ar/Temp/foma/x/foma-ar/foma/regex.y:204.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [regex.c] Error 1
make[1]: *** [CMakeFiles/foma-static.dir/all] Error 2
make: *** [all] Error 2
and I got and error in the regex.c
. I am trying to compile in
Darwin tenis.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64
MacOS 13.2.1 (22D68)
from foma.
I have updated the title of the issue to reflect the actual problem.
from foma.
Following the instructions from
foma/.github/workflows/build.yml
Line 21 in fe40ace
-j
parameter to make
:
% cmake . && make -j
-- Checking for one of the modules 'readline'
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/ar/Temp/foma/x/foma-ar/foma
[ 1%] [BISON][Bregex] Building parser with bison 2.3
[ 2%] [FLEX][Fcmatrix] Building scanner with flex 2.6.4
[ 4%] [FLEX][Flexc] Building scanner with flex 2.6.4
[ 5%] [FLEX][Flexc] Building scanner with flex 2.6.4
[ 6%] [BISON][Bregex] Building parser with bison 2.3
[ 8%] [FLEX][Fregex] Building scanner with flex 2.6.4
[ 9%] [FLEX][Fcmatrix] Building scanner with flex 2.6.4
[ 11%] [FLEX][Fregex] Building scanner with flex 2.6.4
/Users/ar/Temp/foma/x/foma-ar/foma/regex.y:204.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [regex.c] Error 1
make[2]: *** Waiting for unfinished jobs....
/Users/ar/Temp/foma/x/foma-ar/foma/regex.y:204.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [regex.c] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/foma-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/foma-shared.dir/all] Error 2
make: *** [all] Error 2
from foma.
OK, I solved the problem. The bison
tool distributed with MacOS is too old.
% /usr/bin/bison --version
bison (GNU Bison) 2.3
I installed the bison from Homebrew
% which bison
/usr/local/opt/bison/bin/bison
% bison --version
bison (GNU Bison) 3.8.2
and the make -j
finished. So we can close this issue. I am sorry for the noise here. Can I suggest some comments in the README?
from foma.
Related Issues (20)
- Leftover test star-free? HOT 3
- Quantified concatenation using < or > fails when not escaped, different from xfst & hfst
- Implement DESTDIR in Makefile
- Modify bison files to require minimum version HOT 5
- First release? HOT 2
- Reading a full forms lexicon HOT 7
- problem installing foma on Ubuntu 20.04.2 HOT 3
- revert and longest match HOT 1
- Don't require GraphViz GUI app on MacOS HOT 2
- Segfault when using priority union with large grammar HOT 4
- How to automate testing words in Foma? HOT 1
- How to save the output in txt (or any other) format? HOT 1
- How to create DLL library for foma? HOT 1
- Cannot import foma to Python HOT 1
- Javascript FST results are different from the plain FST results HOT 6
- Broken link in docs to Xerox regex
- Mysterious crash with optimizations enabled on GCC HOT 4
- Unescaped reserved symbols in some expressions cause segfault
- Several problems with `foma2js.perl` / `foma2js.py` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foma.