-
Notifications
You must be signed in to change notification settings - Fork 1
Tips
Takashi Kato edited this page Dec 13, 2018
·
3 revisions
This page is sort of knowledge base. I'll add some tips, workaround etc, whenever I find it.
Since glibc 2.26, the xlocale.h is removed and Chez v9.5 depends on this file. If you get the compilation error saying the file is missing, then you can execute the following command and deceive the compiler:
$ sudo ln -s /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h /usr/include/x86_64-linux-gnu/xlocale.hOn GCC 8.2.0 or greater, you may get an error like the following:
prim5.c: In function ‘s_showalloc’:
prim5.c:329:85: error: ‘td of ’ directive output may be truncated writing 6 bytes into a region of size between 0 and 18 [-Werror=format-truncation=]
snprintf(fmtbuf, FMTBUFSIZE, "%%#0%dtx %%#0%dtx (+ %%#0%dtx bytes @ %%#0%dtx) %%%dtd of %%%dtd\n",
There are 2 ways to resolve this issue:
- Using Clang
- Specifying
-Wno-format-truncationThe first option is like this
$ CC=clang scheme-env install chezThe second option is like this
$ CFLAGS="-Wno-format-truncation" scheme-env install chez