Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2014 16:22:05 -0500
From:      Henry Hu <henry.hu.sh@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, Beeblebrox <zaphod@berentweb.com>
Subject:   Re: r273918 buildworld broke at semaphore
Message-ID:  <CAEJt7hZ_p1LZ9ywk-mYyJxumMWy0BUAAa2OW2MtnE5efbVkUjA@mail.gmail.com>
In-Reply-To: <201411111333.05910.jhb@freebsd.org>
References:  <1414786086662-5961241.post@n5.nabble.com> <201411111333.05910.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 11, 2014 at 1:33 PM, John Baldwin <jhb@freebsd.org> wrote:

> On Friday, October 31, 2014 4:08:06 pm Beeblebrox wrote:
> > First breakage in a long time. Error is:
> >
> > In file included from cancelpoints_sem_new.c:47:
> > /usr/src/lib/libc/../../include/semaphore.h:41:16: error: field has
> > incomplete type 'struct _usem2'
> >         struct _usem2   _kern;
> >                         ^
> > /usr/src/lib/libc/../../include/semaphore.h:41:9: note: forward
> declaration
> > of 'struct _usem2'
> >         struct _usem2   _kern;
> >                ^
> > cancelpoints_sem_new.c:66:33: error: use of undeclared identifier
> > 'USEM_MAX_COUNT'
> > _Static_assert(SEM_VALUE_MAX <= USEM_MAX_COUNT, "SEM_VALUE_MAX too
> large");
> >                                 ^
> > cancelpoints_sem_new.c:335:15: warning: implicit declaration of function
> > 'USEM_COUNT' is invalid in C99 [-Wimplicit-function-declaration]
> >         *sval = (int)USEM_COUNT(sem->_kern._count);
> >                      ^
> > cancelpoints_sem_new.c:342:23: error: use of undeclared identifier
> > 'UMTX_OP_SEM2_WAKE'
> >         return _umtx_op(sem, UMTX_OP_SEM2_WAKE, 0, NULL, NULL);
> >                              ^
> > cancelpoints_sem_new.c:361:23: error: use of undeclared identifier
> > 'UMTX_OP_SEM2_WAIT'
> >         return _umtx_op(sem, UMTX_OP_SEM2_WAIT, 0,
> >                              ^
> > cancelpoints_sem_new.c:445:14: error: use of undeclared identifier
> > 'USEM_HAS_WAITERS'
> >         if (count & USEM_HAS_WAITERS)
> >                     ^
> > 1 warning and 5 errors generated.
>
> Seems like your tree is not fully up to date?  The changes to sem_new.c
> were
> committed in the same commit as the changes to sys/umtx.h.


Maybe it's another problem. buildworld may be picking up umtx.h from
/usr/include which is the old version.



>
> --
> John Baldwin
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



-- 
Cheers,
Henry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJt7hZ_p1LZ9ywk-mYyJxumMWy0BUAAa2OW2MtnE5efbVkUjA>