Compile problem with-mark-region-gc on OpenBSD

Bug #2076160 reported by Robert Palm
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Invalid
Undecided
Unassigned

Bug Description

Hi,

any hints for following compile error on OpenBSD current welcome. Thank you.

./make.sh --without-gencgc --with-mark-region-gc

Error:

cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o x86-64-bsd-os.o x86-64-bsd-os.c
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o fullcgc.o fullcgc.c
fullcgc.c:321:13: warning: unused function 'local_smash_weak_pointers' [-Wunused-function]
static void local_smash_weak_pointers()
            ^
fullcgc.c:415:16: warning: unused function 'sweep' [-Wunused-function]
static uword_t sweep(lispobj* where, lispobj* end,
               ^
2 warnings generated.
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o pmrgc.o pmrgc.c
pmrgc.c:618:12: warning: unused variable 'context_method' [-Wunused-variable]
    void (*context_method)(os_context_register_t,void*) =
           ^
1 warning generated.
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o traceroot.o traceroot.c
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o mark-region.o mark-region.c
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o incremental-compact.o incremental-compact.c
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -I/usr/local/include -fno-omit-frame-pointer -I. -c -o gc-thread-pool.o gc-thread-pool.c
gc-thread-pool.c:10:8: error: unknown type name 'os_sem_t'
static os_sem_t *start_semaphores;
       ^
gc-thread-pool.c:11:8: error: unknown type name 'os_sem_t'
static os_sem_t join_semaphore;
       ^
gc-thread-pool.c:17:5: warning: call to undeclared function 'os_sem_wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    os_sem_wait(start_semaphores + i);
    ^
gc-thread-pool.c:23:5: warning: call to undeclared function 'os_sem_post'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    os_sem_post(&join_semaphore);
    ^
gc-thread-pool.c:43:49: error: use of undeclared identifier 'os_sem_t'
    start_semaphores = successful_malloc(sizeof(os_sem_t) * gc_threads);
                                                ^
gc-thread-pool.c:45:7: warning: call to undeclared function 'os_sem_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      os_sem_init(start_semaphores + i, 0);
      ^
gc-thread-pool.c:61:49: warning: call to undeclared function 'os_sem_post'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  for (unsigned int i = 0; i < gc_threads; i++) os_sem_post(start_semaphores + i);
                                                ^
gc-thread-pool.c:65:49: warning: call to undeclared function 'os_sem_wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  for (unsigned int i = 0; i < gc_threads; i++) os_sem_wait(&join_semaphore);
                                                ^
5 warnings and 3 errors generated.
gmake: *** [<builtin>: gc-thread-pool.o] Error 1
gmake: Leaving directory '/home/rpx/lisp/sbcl-sbcl-2.4.7/src/runtime'

Revision history for this message
Robert Palm (r-p-x) wrote :

Forgot to mention arch is AMD64

Revision history for this message
Sebastien Marie (semarie) wrote :

you should add `--with-sb-thread` on the make.sh invocation

Revision history for this message
Robert Palm (r-p-x) wrote :

Thank you! That worked.

Douglas Katzman (dougk)
Changed in sbcl:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.