Comments (4)
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.
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.
Fixed that issue with gmake v3, now make release check
should work fine on macOS.
from zograscope.
👍 Thanks for the fast response and fixes.
from zograscope.
Related Issues (11)
- Build fails with linker error, due to bad positioning of LD_FLAGS HOT 1
- Javascript support HOT 3
- reserved identifier violation HOT 16
- Addition of a build system generator HOT 5
- Makefile parsing fails HOT 2
- Makefile parser error: syntax error, unexpected SLIT HOT 1
- Makefile parser error: syntax error, unexpected ), expecting CHARS or VAR or $( HOT 2
- Makefile parser error: syntax error, unexpected include, expecting WS or NL or LEADING_TAB HOT 1
- Makefile parser error: syntax error, unexpected ASSIGN_OP, expecting ':' or WS HOT 1
- Installation instructions HOT 3
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 zograscope.