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

Fails to build on arm64 #58

Open
falkTX opened this issue Jun 1, 2022 · 2 comments
Open

Fails to build on arm64 #58

falkTX opened this issue Jun 1, 2022 · 2 comments

Comments

@falkTX
Copy link

falkTX commented Jun 1, 2022

Due to some WDL things, build error being:

thirdparty/WDL/source/WDL/wdltypes.h:203:69: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing]
  203 | typedef char wdl_assert_failed_unsigned_char[((char)-1) > 0 ? -1 : 1];
      |                                                                     ^
thirdparty/WDL/source/WDL/wdltypes.h:203:61: error: size '-1' of array 'wdl_assert_failed_unsigned_char' is negative
  203 | typedef char wdl_assert_failed_unsigned_char[((char)-1) > 0 ? -1 : 1];
      |                                              ~~~~~~~~~~~~~~~^~~~~~~~

@falkTX
Copy link
Author

falkTX commented Jun 2, 2022

The same error happens on armhf too

@jpcima
Copy link
Owner

jpcima commented Jun 2, 2022

See: https://www.askjf.com/?q=5516s

There seems 2 ways to go about this problem; one is -fsigned-char, the other is -DWDL_ALLOW_UNSIGNED_DEFAULT_CHAR.

Judging from Justin's comment, the former option is preferable.

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

2 participants