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

Build fails with when --with-quickjs is enabled #138

Closed
unexploredtest opened this issue Jan 3, 2022 · 6 comments
Closed

Build fails with when --with-quickjs is enabled #138

unexploredtest opened this issue Jan 3, 2022 · 6 comments

Comments

@unexploredtest
Copy link

When I enable --with-quickjs in configurations, the build fails with this error:

In file included from /usr/include/libxml++-5.0/libxml++/exceptions/internal_error.h:23,
                 from /usr/include/libxml++-5.0/libxml++/libxml++.h:53,
                 from stack.c:31:
/usr/include/libxml++-5.0/libxml++/exceptions/exception.h:23:10: fatal error: exception: No such file or directory
   23 | #include <exception>
      |          ^~~~~~~~~~~
@rkd77
Copy link
Owner

rkd77 commented Jan 3, 2022

Pass CC=g++ before ./configure.
For example:
CC=g++ ./configure --with-quickjs ...

@unexploredtest
Copy link
Author

Thanks, that fixed the problem.

@OliveThePuffin
Copy link
Contributor

OliveThePuffin commented Jan 31, 2022

When I do this, I get a new error instead saying

In file included from ../../.././src/document/options.h:4,
                 from ../../.././src/document/document.h:4,
                 from ../../.././src/document/docdata.h:4,
                 from renderer.c:26:
renderer.c: In function 'screen_char* get_format_screen_char(html_context*, link_state_T)':
../../.././src/document/format.h:40:56: error: narrowing conversion of '-1' from 'int' to 'text_style_format_t' {aka 'short unsigned int'} [-Wnarrowing]
   40 | #define INIT_TEXT_STYLE(attr, fg, bg) { attr, {fg, bg}}
      |                                                       ^
renderer.c:252:45: note: in expansion of macro 'INIT_TEXT_STYLE'
  252 |         static struct text_style ta_cache = INIT_TEXT_STYLE(-1, 0x0, 0x0);
      |                                             ^~~~~~~~~~~~~~~

@rkd77
Copy link
Owner

rkd77 commented Jan 31, 2022

Which version? git or from tarball?
Is today's code compilable?

@OliveThePuffin
Copy link
Contributor

OliveThePuffin commented Jan 31, 2022

This is from git today. I haven't checked the tarball

EDIT: The tarball works just fine

@rkd77
Copy link
Owner

rkd77 commented Feb 1, 2022

I pushed a few commits yesterday. If they did not fix this compilation error, could you tell us, which environment it is.
Operating system, distribution, compiler version.

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