<div dir="ltr">I believe it has been fixed by <a href="https://github.com/Clozure/ccl/commit/a87d61b88e1f48a563335062668970f7e6290ecf">https://github.com/Clozure/ccl/commit/a87d61b88e1f48a563335062668970f7e6290ecf</a><div>and it's a result of the changes in glibc.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 21, 2017 at 2:11 PM Andrey G. Grozin <<a href="mailto:A.G.Grozin@inp.nsk.su">A.G.Grozin@inp.nsk.su</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello *,<br>
<br>
I've tried to recompile ccl-1.11 from sources on my Gentoo Linux 64-bit<br>
box, but I got<br>
<br>
x86_64-pc-linux-gnu-gcc -include ../platform-linuxx8664.h -c ../image.c<br>
-DLINUX -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS<br>
-DSVN_REVISION="unknown" -g -O2 -Wno-format -m64 -o image.o<br>
In file included from <command-line>:0:0:<br>
../x86-gc.c: In function ‘check_xp’:<br>
./../platform-linuxx8664.h:32:42: error: dereferencing pointer to<br>
incomplete type ‘ExceptionInformation {aka struct ucontext}’<br>
#define xpGPRvector(x) ((natural *)(&((x)->uc_mcontext.gregs)))<br>
^<br>
../x86-gc.c:342:31: note: in expansion of macro ‘xpGPRvector’<br>
natural *regs = (natural *) xpGPRvector(xp);<br>
^~~~~~~~~~~<br>
In file included from <command-line>:0:0:<br>
../x86-exceptions.c: In function ‘early_intn_handler’:<br>
./../platform-linuxx8664.h:32:42: error: dereferencing pointer to<br>
incomplete type ‘ExceptionInformation {aka struct ucontext}’<br>
#define xpGPRvector(x) ((natural *)(&((x)->uc_mcontext.gregs)))<br>
^<br>
./../platform-linuxx8664.h:33:25: note: in expansion of macro<br>
‘xpGPRvector’<br>
#define xpGPR(x,gprno) (xpGPRvector(x)[gprno])<br>
^~~~~~~~~~~<br>
./../platform-linuxx8664.h:35:18: note: in expansion of macro ‘xpGPR’<br>
#define xpPC(x) (xpGPR(x,Iip))<br>
^~~~~<br>
../x86-exceptions.c:86:3: note: in expansion of macro ‘xpPC’<br>
xpPC(xp) += 2;<br>
^~~~<br>
../x86-exceptions.c: In function ‘copy_ucontext’:<br>
../x86-exceptions.c:1598:3: error: invalid use of undefined type ‘struct<br>
ucontext’<br>
ExceptionInformation *dest = ((ExceptionInformation *)current)-1;<br>
^~~~~~~~~~~~~~~~~~~~<br>
../x86-exceptions.c: In function ‘setup_sigaltstack’:<br>
../x86-exceptions.c:2428:27: error: invalid application of ‘sizeof’ to<br>
incomplete type ‘struct ucontext’<br>
stack.ss_size -= sizeof(struct ucontext);<br>
^~~~~~<br>
x86_64-pc-linux-gnu-gcc -include ../platform-linuxx8664.h -c<br>
../thread_manager.c -DLINUX -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE<br>
-DHAVE_TLS -DSVN_REVISION="unknown" -g -O2 -Wno-format -m64 -o<br>
thread_manager.o<br>
make: *** [Makefile:46: x86-exceptions.o] Error 1<br>
make: *** Waiting for unfinished jobs....<br>
../pmcl-kernel.c: In function ‘ensure_gs_available’:<br>
../pmcl-kernel.c:1707:3: warning: implicit declaration of function<br>
‘arch_prctl’ [-Wimplicit-function-declaration]<br>
arch_prctl(ARCH_GET_GS, &gs_addr);<br>
^~~~~~~~~~<br>
make: *** [Makefile:46: x86-gc.o] Error 1<br>
../thread_manager.c: In function ‘setup_tcr_extra_segment’:<br>
../thread_manager.c:870:3: warning: implicit declaration of function<br>
‘arch_prctl’ [-Wimplicit-function-declaration]<br>
arch_prctl(ARCH_SET_GS, (natural)tcr);<br>
^~~~~~~~~~<br>
make: Leaving directory<br>
'/var/tmp/portage/dev-lisp/clozurecl-1.11-r2/work/ccl/lisp-kernel/linuxx8664'<br>
<br>
Any idea what can this mean? I successfully compiled the same ccl-1.11 on<br>
this box earlier, so, it might be a result of some library or compiler<br>
upgrade.<br>
<br>
Andrey_______________________________________________<br>
Openmcl-devel mailing list<br>
<a href="mailto:Openmcl-devel@clozure.com" target="_blank">Openmcl-devel@clozure.com</a><br>
<a href="https://lists.clozure.com/mailman/listinfo/openmcl-devel" rel="noreferrer" target="_blank">https://lists.clozure.com/mailman/listinfo/openmcl-devel</a><br>
</blockquote></div>