discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnustep-objc problem


From: Helge Hess
Subject: Re: gnustep-objc problem
Date: Fri, 30 Mar 2001 16:32:29 +0200

> Chris Apers wrote:
> $ make install shared=YES

'YES' must be written in lowercase, eg 'make shared=yes install'.

Further, libobjc tries to compile using 'posix' threads. I think that
this is wrong, I usually compile with 'single' threads (no thread
support), but win32 might work as well.
Maybe this works 'make shared=yes THREADING=win32', otherwise take a
look into the libobjc GNUmakefile, whether you can adjust the threading
backend to either win32 or single.

Helge

> echo "" > tmp-runtime
> echo "/* This file is automatically generated */" > runtime-info.h
> `gcc -print-prog-name=cc1obj` -print-objc-runtime-info tmp-runtime >>
> runtime-in
> fo.h
> rm -f tmp-runtime
> Making all for library libobjc...
> mkdir -p ./static_obj
> mkdir -p ./static_obj/ix86
> mkdir -p ./static_obj/ix86/cygwin
> mkdir -p ./static_obj/ix86/cygwin/gnu-gnu-gnu-win32
> gcc
> archive.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC
> =0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -
> DGNU
> STEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BAS
> E_LI
> BRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig
> /ix8
> 6/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Sys
> tem/
> Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Heade
> rs/g
> nustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/H
> eade
> rs -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/archive.o
> gcc
> class.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC=0
>  -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -DG
> NUST
> EP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BASE_
> LIBR
> ARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig/i
> x86/
> generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Syste
> m/He
> aders    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Headers
> /gnu
> step  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/Hea
> ders
>  -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/class.o
> gcc
> encoding.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_G
> C=0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION=
> -DGN
> USTEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BA
> SE_L
> IBRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfi
> g/ix
> 86/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Sy
> stem
> /Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Head
> ers/
> gnustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/
> Head
> ers -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/encoding.o
> encoding.c: In function `objc_layout_structure_next_member':
> encoding.c:739: warning: unused variable `known_align'
> encoding.c:743: warning: `bfld_type' might be used uninitialized in
> this
> functio
> n
> encoding.c:744: warning: `bfld_type_align' might be used uninitialized
> in
> this f
> unction
> encoding.c:744: warning: `bfld_field_size' might be used uninitialized
> in
> this f
> unction
> gcc
> gc.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC=0 -D
> DEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION= -DGNUSTEP_MAJOR_VERSION=
> -DGNUS
> TEP_
> MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BASE_LIB
> RARY
> =1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig/ix86
> /gen
> eric -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/System/H
> eade
> rs    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Headers/gn
> uste
> p  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/Header
> s -o
>  static_obj/ix86/cygwin/gnu-gnu-gnu-win32/gc.o
> gcc
> hash.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC=0
> -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -DGN
> USTE
> P_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BASE_L
> IBRA
> RY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig/ix
> 86/g
> eneric -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/System
> /Hea
> ders    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Headers/
> gnus
> tep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/Head
> ers
> -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/hash.o
> gcc
> init.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC=0
> -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -DGN
> USTE
> P_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BASE_L
> IBRA
> RY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig/ix
> 86/g
> eneric -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/System
> /Hea
> ders    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Headers/
> gnus
> tep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/Head
> ers
> -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/init.o
> gcc
> misc.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC=0
> -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -DGN
> USTE
> P_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BASE_L
> IBRA
> RY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig/ix
> 86/g
> eneric -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/System
> /Hea
> ders    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Headers/
> gnus
> tep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/Head
> ers
> -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/misc.o
> gcc
> nil_method.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH
> _GC=0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION
> = -D
> GNUSTEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_
> BASE
> _LIBRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Icon
> fig/
> ix86/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/
> Syst
> em/Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/He
> ader
> s/gnustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/Syste
> m/He
> aders -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/nil_method.o
> gcc
> objects.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC
> =0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -
> DGNU
> STEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BAS
> E_LI
> BRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig
> /ix8
> 6/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Sys
> tem/
> Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Heade
> rs/g
> nustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/H
> eade
> rs -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/objects.o
> gcc
> sarray.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC=
> 0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -D
> GNUS
> TEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BASE
> _LIB
> RARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig/
> ix86
> /generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Syst
> em/H
> eaders    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Header
> s/gn
> ustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/He
> ader
> s -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/sarray.o
> gcc
> selector.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_G
> C=0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION=
> -DGN
> USTEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BA
> SE_L
> IBRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfi
> g/ix
> 86/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Sy
> stem
> /Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Head
> ers/
> gnustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/
> Head
> ers -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/selector.o
> gcc
> sendmsg.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_GC
> =0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION= -
> DGNU
> STEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_BAS
> E_LI
> BRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconfig
> /ix8
> 6/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/Sys
> tem/
> Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Heade
> rs/g
> nustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System/H
> eade
> rs -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/sendmsg.o
> sendmsg.c: In function `__objc_get_forward_imp':
> sendmsg.c:107: warning: control reaches end of non-void function
> sendmsg.c: In function `__objc_send_initialize':
> sendmsg.c:291: warning: implicit declaration of function
> `__objc_generate_gc_typ
> e_description'
> sendmsg.c: At top level:
> runtime-info.h:4: warning: `struct_forward_array' defined but not used
> gcc
> thr-posix.c -c  -DIN_GCC -pipe -DSTDC_HEADERS=1 -DHAVE_STDLIB_H
> -DOBJC_WITH_
> GC=0 -DDEBUG_OBJC_GC=0 -DGNUSTEP -DGNUSTEP_VERSION=
> -DGNUSTEP_MAJOR_VERSION=
>  -DG
> NUSTEP_MINOR_VERSION= -DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1
> -DGNUSTEP_B
> ASE_
> LIBRARY=1 -DGSWARN  -O2 -fgnu-runtime -O2 -Wall  -Iconfig/ix86/cygwin
> -Iconf
> ig/i
> x86/generic -Iobjc -I.    -I. -I/usr/GNUstep/System/Headers
> -I/usr/GNUstep/S
> yste
> m/Headers    -I/usr/GNUstep/System/Library/Headers
> -I/usr/GNUstep/System/Hea
> ders
> /gnustep  -I/usr/GNUstep/System/Headers/ix86/cygwin
> -I/usr/GNUstep/System
> /Hea
> ders -o static_obj/ix86/cygwin/gnu-gnu-gnu-win32/thr-posix.o
> thr-posix.c: In function `__objc_init_thread_system':
> thr-posix.c:44: too many arguments to function `pthread_key_create'
> thr-posix.c:52: warning: implicit declaration of function
> `pthread_attr_setdetac
> hstate'
> thr-posix.c:53: `PTHREAD_CREATE_DETACHED' undeclared (first use in
> this
> function
> )
> thr-posix.c:53: (Each undeclared identifier is reported only once
> thr-posix.c:53: for each function it appears in.)
> thr-posix.c: In function `__objc_close_thread_system':
> thr-posix.c:65: incompatible type for argument 1 of
> `pthread_key_delete'
> thr-posix.c: In function `__objc_thread_set_priority':
> thr-posix.c:101: storage size of `params' isn't known
> thr-posix.c:104: warning: implicit declaration of function
> `pthread_getschedpara
> m'
> thr-posix.c:106: warning: implicit declaration of function
> `sched_get_priority_m
> ax'
> thr-posix.c:109: warning: implicit declaration of function
> `sched_get_priority_m
> in'
> thr-posix.c:123: warning: implicit declaration of function
> `pthread_setschedpara
> m'
> thr-posix.c:101: warning: unused variable `params'
> thr-posix.c: In function `__objc_thread_get_priority':
> thr-posix.c:134: storage size of `params' isn't known
> thr-posix.c:134: warning: unused variable `params'
> thr-posix.c:140: warning: control reaches end of non-void function
> thr-posix.c: In function `__objc_thread_yield':
> thr-posix.c:146: warning: implicit declaration of function
> `sched_yield'
> thr-posix.c: In function `__objc_thread_set_data':
> thr-posix.c:173: incompatible type for argument 1 of
> `pthread_setspecific'
> thr-posix.c: In function `__objc_thread_get_data':
> thr-posix.c:183: incompatible type for argument 1 of
> `pthread_getspecific'
> thr-posix.c: In function `__objc_condition_allocate':
> thr-posix.c:265: `pthread_cond_t' undeclared (first use in this
> function)
> thr-posix.c:267: warning: implicit declaration of function
> `pthread_cond_init'
> thr-posix.c:267: parse error before `)'
> thr-posix.c: At top level:
> thr-posix.c:274: parse error before `return'
> thr-posix.c: In function `__objc_condition_deallocate':
> thr-posix.c:281: warning: implicit declaration of function
> `pthread_cond_destroy
> '
> thr-posix.c:281: `pthread_cond_t' undeclared (first use in this
> function)
> thr-posix.c:281: parse error before `)'
> thr-posix.c: In function `__objc_condition_wait':
> thr-posix.c:293: warning: implicit declaration of function
> `pthread_cond_wait'
> thr-posix.c:293: `pthread_cond_t' undeclared (first use in this
> function)
> thr-posix.c:293: parse error before `)'
> thr-posix.c:298: warning: control reaches end of non-void function
> thr-posix.c: In function `__objc_condition_broadcast':
> thr-posix.c:304: warning: implicit declaration of function
> `pthread_cond_broadca
> st'
> thr-posix.c:304: `pthread_cond_t' undeclared (first use in this
> function)
> thr-posix.c:304: parse error before `)'
> thr-posix.c:308: warning: control reaches end of non-void function
> thr-posix.c: In function `__objc_condition_signal':
> thr-posix.c:314: warning: implicit declaration of function
> `pthread_cond_signal'
> 
> thr-posix.c:314: `pthread_cond_t' undeclared (first use in this
> function)
> thr-posix.c:314: parse error before `)'
> thr-posix.c:318: warning: control reaches end of non-void function
> make[2]: *** [static_obj/ix86/cygwin/gnu-gnu-gnu-win32/thr-posix.o]
> Error 1
> make[1]: *** [libobjc.build] Error 2
> make: *** [libobjc.all.library.variables] Error 2

-- 
SKYRIX Software AG - http://www.skyrix.com/
Web Application Technology for Enterprises



reply via email to

[Prev in Thread] Current Thread [Next in Thread]