Re: r273918 buildworld broke at semaphore

2014-11-14 Thread Beeblebrox
I posted the solution to this through the Nabble page, but there's a 
change in setting there and the messages have not gone through. So, 
re-posting to mail list:


I disabled ccache, then buildworld / buildkernel completed.

I had in /etc/make.conf:
.if ${.CURDIR:M/usr/src} || ${.CURDIR:M/usr/src/*} || 
${.CURDIR:M/asp/git/src} || ${.CURDIR:M/asp/git/src/*}

THREADS=16
#CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/clang,1}
#CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/clang++,1}

The only reason I can think of is that somehow ccache was passing the 
older cached code to the buildworld process, and the reason for that 
wold be because certain clang components fail to identify themselves to 
ccache correctly.


Once I installed the newly built kernel/world and re-booted
* I deleted all under /usr/obj
* re-enabled ccache in make.conf
* re-ran # make buildworld  completed without problem.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: r273918 buildworld broke at semaphore

2014-11-12 Thread John Baldwin
On Tuesday, November 11, 2014 4:22:05 pm Henry Hu wrote:
 On Tue, Nov 11, 2014 at 1:33 PM, John Baldwin j...@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.

'make buildworld' should always populate an include tree under /usr/obj that 
is used instead of /usr/include.  If this wasn't correct, then every change to 
add new constants, etc. to any header installed to /usr/include would fail to 
build.

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


Re: r273918 buildworld broke at semaphore

2014-11-12 Thread Beeblebrox
I solved this problem about 4 hours ago and posted through the Nabble 
interface.


My email is not posting to the mail list, and stil shows as 
not-accepted - there's some sort of problem there...


Regards.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: r273918 buildworld broke at semaphore

2014-11-11 Thread John Baldwin
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.

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


Re: r273918 buildworld broke at semaphore

2014-11-11 Thread Henry Hu
On Tue, Nov 11, 2014 at 1:33 PM, John Baldwin j...@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-unsubscr...@freebsd.org




-- 
Cheers,
Henry
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: r273918 buildworld broke at semaphore

2014-11-11 Thread Beeblebrox

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.


I deleted the entire contents of /usr/src, then did
# svn co svn://svn.freebsd.org/base/head
Buildworld breaks at same place (semaphore)

This error AFAIK, was already combined with:
http://freebsd.1045724.n5.nabble.com/r273910-build-failure-if-lt-sys-umtx-h-gt-is-out-of-date-td5961186.html

Speaking of out-of-date,
http://freebsd.1045724.n5.nabble.com/version-number-error-with-ports-td5961642.html

Regards.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


r273918 buildworld broke at semaphore

2014-10-31 Thread Beeblebrox
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.




-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/r273918-buildworld-broke-at-semaphore-tp5961241.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org