-
Notifications
You must be signed in to change notification settings - Fork 35
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
Compilation error: missing xlocale.h
#61
Comments
I think the following link is related to this issue: xlocal.h is removed of glibc as of 2.26. Edit: This thread discusses the issue and a workaround required to build LLVM. |
Hard-coding the include path to any directory in In file included from /usr/include/sched.h:34:0,
from hclib-thread-bind.c:22:
/usr/include/time.h:113:5: error: unknown type name ‘locale_t’; did you mean ‘clock_t’?
locale_t __loc) __THROW;
^~~~~~~~
clock_t I also tried following the suggestion of including |
Hello, Can you try the code below? This would be just a quick fix and might not be a complete solution. But I confirmed the fix worked at least on my Ubuntu 17.10 machine and the C tests passed. I'll dive into more details, but please let me know if the fix works on your machine. My changes include:
It seems that the locale_t error you mentioned was caused by using GNU Extensions (
|
@ahayashi, with your changes I don't think we need to include @@ -15,9 +15,10 @@
*/
#include <stdio.h>
+#include <locale.h>
+#include <time.h>
#define _GNU_SOURCE
#define __USE_GNU
-#include <xlocale.h>
#include <unistd.h>
#include <sched.h>
#include <errno.h> |
@cogumbreiro, oh right, I forgot to delete |
Hi, everyone,
I'm having problems compiling hclib in Ubuntu 17.10. According to ubuntu-packages it seemed I had to install
libc++-dev
. The file is indeed installed in my system but hclib's build script is not able to find it:Any workarounds? I was expecting
configure.sh
to either find the right header or at least consider the missing header as an error.Compilation error:
The text was updated successfully, but these errors were encountered: