Giter Club home page Giter Club logo

Comments (5)

arademaker avatar arademaker commented on August 27, 2024

I just submitted a PR adding the Makefile I got from the tar.gz file mentioned here.

from foma.

arademaker avatar arademaker commented on August 27, 2024

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.

arademaker avatar arademaker commented on August 27, 2024

I have updated the title of the issue to reflect the actual problem.

from foma.

arademaker avatar arademaker commented on August 27, 2024

Following the instructions from

sudo apt-get -qfy install --no-install-recommends cmake
. I tried to pass the -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.

arademaker avatar arademaker commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.