Giter Site home page Giter Site logo

Build fails in macOS about zograscope HOT 4 CLOSED

xaizek avatar xaizek commented on May 20, 2024
Build fails in macOS

from zograscope.

Comments (4)

tritao avatar tritao commented on May 20, 2024

After manually removing that flag from the Makefile had some issues with Bison.
The default version on the PATH is 2.3 and gives some errors.

After fixing the paths in the Makefile to use Bison 3.3 install from Homebrew:

➜  zograscope git:(master) ✗ make
/usr/local/Cellar/bison/3.3.2/bin/bison -Werror --defines=./src/make/make-parser.hpp \
	      --output=./src/make/make-parser.gen.cpp src/make/make-parser.ypp
src/make/make-parser.ypp:66.1-20: error: deprecated directive, use ‘%define api.prefix {make_}’ [-Werror=deprecated]
 %name-prefix "make_"
 ^~~~~~~~~~~~~~~~~~~~
src/make/make-parser.ypp: error: fix-its can be applied.  Rerun with option '--update'. [-Werror=other]

After applying the suggested fix to the Bison grammar, I get a little bit further.

➜  zograscope git:(master) ✗ make
/usr/local/Cellar/bison/3.3.2/bin/bison -Werror --defines=./src/make/make-parser.hpp \
	      --output=./src/make/make-parser.gen.cpp src/make/make-parser.ypp
flex --header-file=./src/make/make-lexer.hpp \
	     --outfile=./src/make/make-lexer.gen.cpp src/make/make-lexer.flex
c++ -c -I./src/ -std=c++11 -Wall -Wextra -MMD -Isrc/ -Ithird-party/ -DYYDEBUG -g src/ColorCane.cpp -o src/ColorCane.o
c++ -c -I./src/ -std=c++11 -Wall -Wextra -MMD -Isrc/ -Ithird-party/ -DYYDEBUG -g src/ColorScheme.cpp -o src/ColorScheme.o
c++ -c -I./src/ -std=c++11 -Wall -Wextra -MMD -Isrc/ -Ithird-party/ -DYYDEBUG -g src/Highlighter.cpp -o src/Highlighter.o
In file included from src/Highlighter.cpp:18:
In file included from ./src/Highlighter.hpp:24:
In file included from /Applications/Xcode81.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stack:86:
/Applications/Xcode81.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:912:49: error: invalid application of 'sizeof' to an incomplete type
      'value_type' (aka 'Highlighter::Entry')
    static const difference_type __block_size = sizeof(value_type) < 256 ? 4096 / sizeof(value_type) : 16;

from zograscope.

xaizek avatar xaizek commented on May 20, 2024

Thank you for the report. Will try to setup Travis-CI later, I didn't expect such issues. There is now osx-fixes branch which builds and passes all tests for me.

Also, you probably want to do gmake release. Absence of -Og might reduce performance and make release uses old make, which has some troubles managing dependencies and make need to be run twice (so gmake from brew isn't strictly needed).

from zograscope.

xaizek avatar xaizek commented on May 20, 2024

Fixed that issue with gmake v3, now make release check should work fine on macOS.

from zograscope.

tritao avatar tritao commented on May 20, 2024

👍 Thanks for the fast response and fixes.

from zograscope.

Related Issues (11)

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.