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

flite fails to compile #1706

Closed
MartiCode opened this issue Jun 11, 2020 · 5 comments
Closed

flite fails to compile #1706

MartiCode opened this issue Jun 11, 2020 · 5 comments

Comments

@MartiCode
Copy link

Have had this issue for a week despite wiping and rebuilding everything from scratch:

┌ flite git  .......................................... [Recently updated]
├ Running clean...
├ Running configure...
├ Running make...
Likely error (tail of the failed operation logfile):
In file included from D:\media-autobuild_suite-master\msys64\mingw64\lib\clang\10.0.0\include\x86intrin.h:15:
In file included from D:\media-autobuild_suite-master\msys64\mingw64\lib\clang\10.0.0\include\immintrin.h:18:
In file included from D:\media-autobuild_suite-master\msys64\mingw64\lib\clang\10.0.0\include\xmmintrin.h:3005:
D:\media-autobuild_suite-master\msys64\mingw64\lib\clang\10.0.0\include\emmintrin.h:4224:6: error: conflicting types for '_mm_clflush'
void _mm_clflush(void const * __p);
     ^
D:\media-autobuild_suite-master\msys64\mingw64\lib\clang\10.0.0\include\emmintrin.h:4224:6: note: '_mm_clflush' is a builtin with type 'void (const void *)'
1 error generated.
make[1]: *** [<builtin>: find_sts_main.o] Error 1
make: *** [config/common_make_rules:133: build/x86_64-mingw32/obj//.make_build_dirs] Error 2

logs.zip

@1480c1
Copy link
Member

1480c1 commented Jun 11, 2020

It seems that flite did something I would consider extremely stupid by defining const to empty before including system headers, thus breaking any existing std functions that rely on the const keyword.

@Copy-link
Copy link
Contributor

Looks like it's fixed.

@MartiCode
Copy link
Author

I'm still having the same issue. There's been a lot of other stuff not compiling as well (xavs, gpac, ...) but I tried reinstalling from scratch and that hasn't fixed it either.

@Copy-link
Copy link
Contributor

I wonder why I wasn't having the problem, it seems like it should've been affecting everyone.

@1480c1
Copy link
Member

1480c1 commented Jul 26, 2020

it only really affected clang since clang had the function as a builtin

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

No branches or pull requests

3 participants