Skip to content

'st_check_for_sizeof_st_index_t' declared as array with a negative size #130

@vadi2

Description

@vadi2

I'm trying to compile a library that used Onigmo with Emscripten 1.38.30 and I'm getting the following error:

regcomp.o 3rdparty/edbee-lib/vendor/onig/regcomp.c
In file included from 3rdparty/edbee-lib/vendor/onig/regcomp.c:31:
In file included from 3rdparty/edbee-lib/vendor/onig/regparse.h:33:
In file included from 3rdparty/edbee-lib/vendor/onig/regint.h:923:
3rdparty/edbee-lib/vendor/onig/st.h:65:45: error: 'st_check_for_sizeof_st_index_t' declared as an
      array with a negative size
typedef char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP == (int)sizeof(st_index_t) ? 1 : -1];
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3rdparty/edbee-lib/vendor/onig/config.h:109:22: note: expanded from macro 'SIZEOF_VOIDP'
#define SIZEOF_VOIDP 8
                     ^
1 error generated.
shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
Makefile:36871: recipe for target 'regcomp.o' failed

Any ideas what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions