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

Errors when I install stringi #433

Closed
dailing57 opened this issue May 16, 2021 · 2 comments
Closed

Errors when I install stringi #433

dailing57 opened this issue May 16, 2021 · 2 comments

Comments

@dailing57
Copy link

Here are some Error messages I get when I install stringi:
run:
USE_LOCAL -UDEBUG -DNDEBUG -DU_HAVE_ELF_H -I/usr/local/include -fpic -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c icu69/common/uarrsort.cpp -o icu69/common/uarrsort.o
errors:
icu69/common/uarrsort.cpp: In function ‘constexpr int32_t sizeInMaxAlignTs(int32_t)’: icu69/common/uarrsort.cpp:40:34: error: ‘max_align_t’ is not a member of ‘std’ return (sizeInBytes + sizeof(std::max_align_t) - 1) / sizeof(std::max_align_t);
icu69/common/uarrsort.cpp:144:77: error: template argument 1 is invalid icu::MaybeStackArray<std::max_align_t, sizeInMaxAlignTs(STACK_ITEM_SIZE)> v;
icu69/common/uarrsort.cpp:145:40: error: request for member ‘getCapacity’ in ‘v’, which is of non-class type ‘int’ if (sizeInMaxAlignTs(itemSize) > v.getCapacity() &&

@dailing57 dailing57 reopened this May 16, 2021
@dailing57
Copy link
Author

I've found out why I'm wrong.I'm using the old version of gcc so that the max_align_t is not in the std.

@gagolews
Copy link
Owner

Duplicate of #431

@gagolews gagolews marked this as a duplicate of #431 May 16, 2021
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