On 2018/02/06 10:20, Stuart Henderson wrote:
> On 2017/12/06 18:19, Jeremie Courreges-Anglas wrote:
> > On Wed, Dec 06 2017, Stuart Henderson <s...@spacehopper.org> wrote:
> > > Seen in i386 bulk. No recent relevant change to clisp so I'm not sure
> > > what would have triggered it..
> > >
> > >
> > > /usr/obj/ports/clisp-2.49/clisp-2.49/src/spvw.d:2881:47: error: use of 
> > > undeclared identifier 'MAP_ANON'
> > >   
> > > mmap((void*)0xC0000000,0x20000000,PROT_NONE,MAP_ANON|MAP_PRIVATE|MAP_FIXED,-1,0);
> > >                                               ^
> > > /usr/obj/ports/clisp-2.49/clisp-2.49/src/unix.d:65:22: note: expanded 
> > > from macro 'MAP_ANON'
> > >     #define MAP_ANON MAP_ANONYMOUS
> > >                      ^
> > > /usr/include/sys/mman.h:60:23: note: expanded from macro 'MAP_ANONYMOUS'
> > > #define MAP_ANONYMOUS   MAP_ANON        /* alternate POSIX spelling */
> > >                         ^
> > 
> > Given that <sys/mman.h> defines both MAP_ANON and MAP_ANONYMOUS, along
> > with the other MAP_* and PROT_* used above, something looks seriously
> > messed up. :)
> > 
> > -- 
> > jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
> > 
> 
> And I've just hit the same again...
> 

This still happens btw. (I don't send mail about it every time..) When it does
it knocks out texlive which is very annoying. Can someone with an interest in
clisp (or xindy in texlive) take a look please otherwise I'd like to disable
xindy on i386 to limit damage from the failures.

Noticable difference between working and failed builds is this:

-checking for working shared memory... no
+checking for working shared memory... yes

Test program from configure is here:

  28269 # This test is from Marcus Daniels
  28270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working shared 
memory" >&5
  28271 $as_echo_n "checking for working shared memory... " >&6; }
  28272 if test "${cl_cv_sys_shm_works+set}" = set; then :
  28273   $as_echo_n "(cached) " >&6
  28274 else
  28275
  28276 if test "$cross_compiling" = yes; then :
  28277   cl_cv_sys_shm_works="guessing no"
  28278 else
  28279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28280 /* end confdefs.h.  */
  28281 #include <sys/types.h>
  28282 #include <sys/ipc.h>
  28283 #include <sys/shm.h>
  28284 /* try attaching a single segment to multiple addresses */
  28285 #define segsize 0x10000
  28286 #define attaches 128
  28287 #define base_addr 0x01000000
  28288 int main ()
  28289 { int shmid, i; char* addr; char* result;
  28290   if ((shmid = shmget(IPC_PRIVATE,segsize,0400)) < 0) exit(1);
  28291   for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
  28292     if ((result = (char*)shmat(shmid,addr,SHM_RDONLY)) == (char*)(-1)) 
break;
  28293   for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
  28294     shmdt(addr);
  28295   shmctl(shmid,IPC_RMID,0);
  28296   exit(result == (char*)(-1));
  28297 }
  28298 _ACEOF
  28299 if ac_fn_c_try_run "$LINENO"; then :
  28300   cl_cv_sys_shm_works=yes
  28301 else
  28302   cl_cv_sys_shm_works=no
  28303 fi

Sometimes this succeeds (exit 0) and sometimes fails (exit 1).

Reply via email to