Skip to content
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

Compiler error: conflicting types for ‘reserved_word’ #698

Open
ffaf1 opened this issue Aug 19, 2021 · 6 comments
Open

Compiler error: conflicting types for ‘reserved_word’ #698

ffaf1 opened this issue Aug 19, 2021 · 6 comments

Comments

@ffaf1
Copy link

ffaf1 commented Aug 19, 2021

When building TSC-2.1.0 on Debian stable (bullseye), I get this error:

f@extensa:~/download/TSC-2.1.0/tsc/build$ make
[  1%] Built target podparser
[  2%] Performing build step for 'mruby'
(in /home/f/download/TSC-2.1.0/tsc/build/mruby)
CC    build/host/mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o
In file included from /home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/parse.y:4446:
/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/keywords:5:37: error: conflicting types for ‘reserved_word’
    5 | #define mrb_reserved_word(str, len) reserved_word(str, len)
      |                                     ^~~~~~~~~~~~~
/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/keywords:72:1: note: in expansion of macro ‘mrb_reserved_word’
/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/keywords:4:30: note: previous declaration of ‘reserved_word’ was here
    4 | static const struct kwtable *reserved_word(const char *, unsigned int);
      |                              ^~~~~~~~~~~~~
In file included from /home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/parse.y:4446:
/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/keywords:5:37: error: conflicting types for ‘reserved_word’
    5 | #define mrb_reserved_word(str, len) reserved_word(str, len)
      |                                     ^~~~~~~~~~~~~
/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/keywords:72:1: note: in expansion of macro ‘mrb_reserved_word’
/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core/keywords:4:30: note: previous declaration of ‘reserved_word’ was here
    4 | static const struct kwtable *reserved_word(const char *, unsigned int);
      |                              ^~~~~~~~~~~~~
rake aborted!
Command Failed: [gcc -g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings -DMRB_UTF8_STRING -DMRBGEM_MRUBY_COMPILER_VERSION=0.0.0 -I"/home/f/download/TSC-2.1.0/tsc/build/mruby/include" -I"/home/f/download/TSC-2.1.0/tsc/build/mruby/mrbgems/mruby-compiler/core" -MMD -o "/home/f/download/TSC-2.1.0/tsc/build/mruby/build/host/mrbgems/mruby-compiler/core/y.tab.o" -c "/home/f/download/TSC-2.1.0/tsc/build/mruby/build/host/mrbgems/mruby-compiler/core/y.tab.c"]

make[2]: *** [CMakeFiles/mruby.dir/build.make:130: mruby-prefix/src/mruby-stamp/mruby-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:135: CMakeFiles/mruby.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
@xet7
Copy link
Member

xet7 commented Aug 19, 2021

@ffaf1

I don't get any errors on Debian stable (bullseye).

git clone https://github.com/Secretchronicles/TSC

cd TSC

./install-build-dependencies.sh

./build-tsc.sh

./run-tsc.sh

@xet7 xet7 closed this as completed Aug 19, 2021
@ffaf1
Copy link
Author

ffaf1 commented Aug 19, 2021 via email

@xet7 xet7 reopened this Aug 19, 2021
@xet7
Copy link
Member

xet7 commented Aug 19, 2021

@ffaf1

Maybe this way?

gem install packagename --user-install

Anyway, installing dependencies with apt requires sudo, so I don't know how useful this would be. There are various .deb/.exe etc packages here https://secretchronicles.org/en/download/ , if that debian package does not work, I could create newer package for Debian bullseye stable.

While there is also some code in repo for building flatpak version, I think it's not published anywhere yet.

Does this help in any way?

@xet7
Copy link
Member

xet7 commented Aug 19, 2021

I think those deb packages should install TSC menu options for all users on that computer.

@ffaf1
Copy link
Author

ffaf1 commented Aug 19, 2021 via email

@Quintus
Copy link
Member

Quintus commented Aug 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants