From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Germ=E1n?= Arias Newsgroups: gmane.emacs.devel Subject: Re: Can't compile Date: Fri, 12 Aug 2011 17:02:45 -0600 Message-ID: <1313190166.5494.5.camel@german-desktop> References: <1312932079.5495.5.camel@german-desktop> <4E428E4B.9050105@lanl.gov> <1313015823.5502.5.camel@german-desktop> <4E4309D8.4050502@lanl.gov> <1313020793.5502.6.camel@german-desktop> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1313190183 2307 80.91.229.12 (12 Aug 2011 23:03:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2011 23:03:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 13 01:02:59 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qs0kl-0007G1-93 for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2011 01:02:59 +0200 Original-Received: from localhost ([::1]:36796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qs0kk-0001oE-R4 for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2011 19:02:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qs0kh-0001nv-3S for emacs-devel@gnu.org; Fri, 12 Aug 2011 19:02:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qs0kf-0006WV-SV for emacs-devel@gnu.org; Fri, 12 Aug 2011 19:02:55 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:39630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qs0kf-0006WL-Lp for emacs-devel@gnu.org; Fri, 12 Aug 2011 19:02:53 -0400 Original-Received: by gyg10 with SMTP id 10so2542719gyg.0 for ; Fri, 12 Aug 2011 16:02:52 -0700 (PDT) Original-Received: by 10.150.251.41 with SMTP id y41mr2513982ybh.36.1313190172411; Fri, 12 Aug 2011 16:02:52 -0700 (PDT) Original-Received: from [192.168.1.5] ([190.148.145.101]) by mx.google.com with ESMTPS id s62sm1620279yhn.19.2011.08.12.16.02.47 (version=SSLv3 cipher=OTHER); Fri, 12 Aug 2011 16:02:48 -0700 (PDT) In-Reply-To: <1313020793.5502.6.camel@german-desktop> X-Mailer: Evolution 2.22.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143183 Archived-At: On mié, 2011-08-10 at 17:59 -0600, Germán Arias wrote: > On mié, 2011-08-10 at 16:44 -0600, Davis Herring wrote: > > > > By keeping the "-x objective-c" you're telling the compiler that all > > subsequent files are Objective C files, including ../lib/libgnu.a. > > > > You'll have to find some way to restrict those flags to only the actual > > source files, perhaps by countermanding them with "-x none" later. > > This solve the problem. Thanks. > > > > > Davis > > Now I have other problem. These are my changes: === modified file 'configure.in' --- configure.in/s / 2011-08-04 17:04:39 +0000 +++ configure.in 2011-08-12 05:07:55 +0000 @@ -219,6 +219,14 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \ GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf +GS_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)" + +if grep "BASE_NATIVE_OBJC_EXCEPTIONS 1" ${GS_LOCAL_HEADERS}/GNUstepBase/GSConfig.h; then + AC_DEFINE(_NATIVE_OBJC_EXCEPTIONS, 1, [Synchronize native exceptions with gnustep-base.]) +else + AC_DEFINE(_NATIVE_OBJC_EXCEPTIONS, 0, [Synchronize native exceptions with gnustep-base.]) +fi + AC_ARG_ENABLE(ns-self-contained, [AS_HELP_STRING([--disable-ns-self-contained], [disable self contained build under NeXTstep])], @@ -1488,6 +1496,9 @@ CPPFLAGS="$CPPFLAGS -x objective-c" CFLAGS="$CFLAGS -x objective-c" TEMACS_LDFLAGS2="\${LDFLAGS}" +if _NATIVE_OBJC_EXCEPTIONS=1; then + CFLAGS="$CFLAGS -fobjc-exceptions" +fi dnl I don't think it's especially important, but src/Makefile.in dnl (now the only user of ns_appdir) used to go to the trouble of adding a dnl trailing "/" to it, so now we do it here. @@ -2560,7 +2571,10 @@ AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.]) # See also .m.o rule in Makefile.in */ # FIXME: are all these flags really needed? Document here why. */ - C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" + C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I ${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" + if _NATIVE_OBJC_EXCEPTIONS=1; then + C_SWITCH_X_SYSTEM="$C_SWITCH_X_SYSTEM -fobjc-exceptions" + fi GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" fi if test "${NS_HAVE_NSINTEGER}" = "yes"; then And I get the error: Compiling hilit-chg.el Wrote /home/german/Instalados/emacs/lisp/hilit-chg.elc Compiling hippie-exp.el Wrote /home/german/Instalados/emacs/lisp/hippie-exp.elc Compiling hl-line.el Wrote /home/german/Instalados/emacs/lisp/hl-line.elc Compiling htmlfontify.el Aborted make[3]: *** [htmlfontify.elc] Error 134 make[3]: Leaving directory `/home/german/Instalados/emacs/lisp' make[2]: *** [compile-main] Error 2 make[2]: Leaving directory `/home/german/Instalados/emacs/lisp' make[1]: *** [lisp] Error 2 make[1]: Leaving directory `/home/german/Instalados/emacs' make: *** [bootstrap] Error 2 german@german-desktop:~/Instalados/emacs$ fmake distclean bash: fmake: command not found As you can see, I added flags in C_SWITCH_X_SYSTEM. Instead add these in a global way. Well, I get a lot of warning about that -fobjc-exceptions is only for ObjC/ObjC++ files. But all files: nsterm.c, emacs.c ..... where gnustep is used, now compile fine (If I don't add this flag, the compilation stops and show a message requiring this flag.). But the compilation suddenly stop in htmlfontify.el without more info. Any advice? Thanks.