|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
LanguageKitRuntime compilation issues with latest SVN.Build Project: LanguageKitRuntime
Making all for framework LanguageKitRuntime... Compiling file BigInt.m ... Compiling file BlockClosure.m ... Compiling file BlockClosure+debug.m ... In file included from /usr/include/ucontext.h:27, from BlockClosure+debug.m:4: /usr/include/sys/ucontext.h:139: error: expected specifier-qualifier-list before âstack_tâ cc1obj: warnings being treated as errors BlockClosure+debug.m:34: warning: âstruct __siginfoâ declared inside parameter list BlockClosure+debug.m:34: warning: its scope is only this definition or declaration, which is probably not what you want BlockClosure+debug.m: In function â+[BlockClosure(Debug) stackContexts]â: BlockClosure+debug.m:82: error: âstruct sigactionâ has no member named âsa_sigactionâ make[5]: *** [obj/BlockClosure+debug.m.o] Error 1 make[4]: *** [internal-framework-run-compile-submake] Error 2 make[3]: *** [LanguageKitRuntime.all.framework.variables] Error 2 NOTE: I'm not entirely sure if this is supposed to be used with the libobjc runtime, so bear with me if I'm off base here. :) GC _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: LanguageKitRuntime compilation issues with latest SVN.This is currently broken on GNU platforms. If you can figure out the
combination of feature macros that's needed to let the code compile, let me know, otherwise comment out that file in the GNUmakefile. David On 16 May 2009, at 16:19, Gregory Casamento wrote: > Build Project: LanguageKitRuntime > > Making all for framework LanguageKitRuntime... > Compiling file BigInt.m ... > Compiling file BlockClosure.m ... > Compiling file BlockClosure+debug.m ... > In file included from /usr/include/ucontext.h:27, > from BlockClosure+debug.m:4: > /usr/include/sys/ucontext.h:139: error: expected specifier-qualifier- > list before ‘stack_t’ > cc1obj: warnings being treated as errors > BlockClosure+debug.m:34: warning: ‘struct __siginfo’ declared > inside parameter list > BlockClosure+debug.m:34: warning: its scope is only this definition > or declaration, which is probably not what you want > BlockClosure+debug.m: In function ‘+[BlockClosure(Debug) > stackContexts]’: > BlockClosure+debug.m:82: error: ‘struct sigaction’ has no member > named ‘sa_sigaction’ > make[5]: *** [obj/BlockClosure+debug.m.o] Error 1 > make[4]: *** [internal-framework-run-compile-submake] Error 2 > make[3]: *** [LanguageKitRuntime.all.framework.variables] Error 2 > > NOTE: I'm not entirely sure if this is supposed to be used with the > libobjc runtime, so bear with me if I'm off base here. :) > > GC > > _______________________________________________ > Etoile-discuss mailing list > Etoile-discuss@... > https://mail.gna.org/listinfo/etoile-discuss _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: LanguageKitRuntime compilation issues with latest SVN.On 16/05/09 17:12, David Chisnall wrote:
> This is currently broken on GNU platforms. If you can figure out the > combination of feature macros that's needed to let the code compile, > let me know, The most succinct fix I could find was: -${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=2 +${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE plus this tweak in BlockClosure+debug.m: -static void segv(int sig, struct __siginfo *info, void *addr) +static void segv(int sig, siginfo_t *info, void *addr) Is that sane? > otherwise comment out that file in the GNUmakefile. > > David > > On 16 May 2009, at 16:19, Gregory Casamento wrote: > >> Build Project: LanguageKitRuntime >> >> Making all for framework LanguageKitRuntime... >> Compiling file BigInt.m ... >> Compiling file BlockClosure.m ... >> Compiling file BlockClosure+debug.m ... >> In file included from /usr/include/ucontext.h:27, >> from BlockClosure+debug.m:4: >> /usr/include/sys/ucontext.h:139: error: expected specifier-qualifier- >> list before ‘stack_t’ >> cc1obj: warnings being treated as errors >> BlockClosure+debug.m:34: warning: ‘struct __siginfo’ declared >> inside parameter list >> BlockClosure+debug.m:34: warning: its scope is only this definition >> or declaration, which is probably not what you want >> BlockClosure+debug.m: In function ‘+[BlockClosure(Debug) >> stackContexts]’: >> BlockClosure+debug.m:82: error: ‘struct sigaction’ has no member >> named ‘sa_sigaction’ >> make[5]: *** [obj/BlockClosure+debug.m.o] Error 1 >> make[4]: *** [internal-framework-run-compile-submake] Error 2 >> make[3]: *** [LanguageKitRuntime.all.framework.variables] Error 2 >> >> NOTE: I'm not entirely sure if this is supposed to be used with the >> libobjc runtime, so bear with me if I'm off base here. :) >> >> GC _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: LanguageKitRuntime compilation issues with latest SVN.On 19 May 2009, at 21:22, Andrew Price wrote:
> On 16/05/09 17:12, David Chisnall wrote: >> This is currently broken on GNU platforms. If you can figure out the >> combination of feature macros that's needed to let the code compile, >> let me know, > > The most succinct fix I could find was: > > -${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=2 > +${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE > > plus this tweak in BlockClosure+debug.m: > > -static void segv(int sig, struct __siginfo *info, void *addr) > +static void segv(int sig, siginfo_t *info, void *addr) > > Is that sane? Looks sensible. Send me the diff and I'll apply it. David _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: LanguageKitRuntime compilation issues with latest SVN.On 19/05/09 21:48, David Chisnall wrote:
> Looks sensible. Send me the diff and I'll apply it. See attached (assuming gmane doesn't screw up attachments). Andrew Index: Languages/LanguageKit/Runtime/BlockClosure+debug.m =================================================================== --- Languages/LanguageKit/Runtime/BlockClosure+debug.m (revision 4665) +++ Languages/LanguageKit/Runtime/BlockClosure+debug.m (working copy) @@ -31,7 +31,7 @@ static __thread volatile char fellOffStack; static __thread ucontext_t sigretcontext; -static void segv(int sig, struct __siginfo *info, void *addr) +static void segv(int sig, siginfo_t *info, void *addr) { fellOffStack = 1; setcontext(&sigretcontext); Index: Languages/LanguageKit/Runtime/GNUmakefile =================================================================== --- Languages/LanguageKit/Runtime/GNUmakefile (revision 4665) +++ Languages/LanguageKit/Runtime/GNUmakefile (working copy) @@ -11,7 +11,7 @@ LIBRARIES_DEPEND_UPON += -lgmp $(FND_LIBS) $(OBJC_LIBS) $(SYSTEM_LIBS) -${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=2 +${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE ${FRAMEWORK_NAME}_OBJCFLAGS += -std=c99 -fexceptions ${FRAMEWORK_NAME}_CFLAGS += -std=c99 -fexceptions _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: LanguageKitRuntime compilation issues with latest SVN.Patching file Languages/LanguageKit/Runtime/BlockClosure+debug.m using
Plan A... patch: **** malformed patch at line 6: static __thread volatile char fellOffStack; Please provide the patch as an attachment, not inline. David On 19 May 2009, at 22:02, Andrew Price wrote: > On 19/05/09 21:48, David Chisnall wrote: >> Looks sensible. Send me the diff and I'll apply it. > > See attached (assuming gmane doesn't screw up attachments). > > Andrew > Index: Languages/LanguageKit/Runtime/BlockClosure+debug.m > =================================================================== > --- Languages/LanguageKit/Runtime/BlockClosure+debug.m (revision 4665) > +++ Languages/LanguageKit/Runtime/BlockClosure+debug.m (working copy) > @@ -31,7 +31,7 @@ > static __thread volatile char fellOffStack; > static __thread ucontext_t sigretcontext; > > -static void segv(int sig, struct __siginfo *info, void *addr) > +static void segv(int sig, siginfo_t *info, void *addr) > { > fellOffStack = 1; > setcontext(&sigretcontext); > Index: Languages/LanguageKit/Runtime/GNUmakefile > =================================================================== > --- Languages/LanguageKit/Runtime/GNUmakefile (revision 4665) > +++ Languages/LanguageKit/Runtime/GNUmakefile (working copy) > @@ -11,7 +11,7 @@ > > LIBRARIES_DEPEND_UPON += -lgmp $(FND_LIBS) $(OBJC_LIBS) $(SYSTEM_LIBS) > > -${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=2 > +${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE > ${FRAMEWORK_NAME}_OBJCFLAGS += -std=c99 -fexceptions > ${FRAMEWORK_NAME}_CFLAGS += -std=c99 -fexceptions > > _______________________________________________ > Etoile-discuss mailing list > Etoile-discuss@... > https://mail.gna.org/listinfo/etoile-discuss _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
|
|
|
Re: LanguageKitRuntime compilation issues with latest SVN.David Chisnall <theraven@...> writes:
> On 19 May 2009, at 21:22, Andrew Price wrote: > >> On 16/05/09 17:12, David Chisnall wrote: >>> This is currently broken on GNU platforms. If you can figure out the >>> combination of feature macros that's needed to let the code compile, >>> let me know, >> >> The most succinct fix I could find was: >> >> -${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=2 >> +${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE >> >> plus this tweak in BlockClosure+debug.m: >> >> -static void segv(int sig, struct __siginfo *info, void *addr) >> +static void segv(int sig, siginfo_t *info, void *addr) >> >> Is that sane? > > Looks sensible. Send me the diff and I'll apply it. Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
| Free embeddable forum powered by Nabble | Forum Help |