all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
@ 2009-11-08 16:18 Florent Georges
  2009-11-08 17:40 ` Anupam Sengupta
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Florent Georges @ 2009-11-08 16:18 UTC (permalink / raw)
  To: emacs-devel

  Hi,

  I've just bought a new MacBook Pro.  I've installed Apple's
Xcode (version "Xcode 3.2.1 for Mac OS X 10.6 Snow Leopard",
filename "xcode321_10m2003_developerdvd.dmg".)  Then I tried to
build GNU Emacs 23.1 (from release file "emacs-23.1.tar.bz2".)

  I tried the following commands, as documented in the release,
to build Emacs:

    ./configure --with-ns
    make install
    # outputs in http://www.fgeorges.org/tmp/emacs/configure.out
    # and http://www.fgeorges.org/tmp/emacs/make.out

  As the make command failed, I looked on the web and tried the
following sets of commands, also failing (I tried each time on a
freshly unarchived directory):

    ./configure --with-ns
    make bootstrap
    # outputs in http://www.fgeorges.org/tmp/emacs/configure.out
    # and http://www.fgeorges.org/tmp/emacs/make-b.out

    CFLAGS="-arch i386" ./configure --with-ns
    make install
    # outputs in http://www.fgeorges.org/tmp/emacs/configure-i386.out
    # and http://www.fgeorges.org/tmp/emacs/make-i386.out

    CFLAGS="-arch i386" ./configure --with-ns
    make bootstrap
    # outputs in http://www.fgeorges.org/tmp/emacs/configure-i386.out
    # and http://www.fgeorges.org/tmp/emacs/make-i386-b.out

  Did I do anything wrong?  Has someone succeeded to build GNU
Emacs 23.1 on Mac OS X 10.6.1 (aka Snow Leopard)?

  Regards,

--
Florent Georges
http://www.fgeorges.org/

























^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-08 16:18 Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed Florent Georges
@ 2009-11-08 17:40 ` Anupam Sengupta
  2009-11-08 21:54 ` David Reitter
  2009-11-08 23:11 ` Yavuz
  2 siblings, 0 replies; 11+ messages in thread
From: Anupam Sengupta @ 2009-11-08 17:40 UTC (permalink / raw)
  To: emacs-devel

>>>>> "Florent" == Florent Georges <lists@fgeorges.org> writes:


[...]

    Florent>   I tried the following commands, as documented in the
    Florent> release, to build Emacs:


[...]

    Florent>     CFLAGS="-arch i386" ./configure --with-ns make
    Florent> bootstrap # outputs in
    Florent> http://www.fgeorges.org/tmp/emacs/configure-i386.out # and
    Florent> http://www.fgeorges.org/tmp/emacs/make-i386-b.out

    Florent>   Did I do anything wrong?  Has someone succeeded to build
    Florent> GNU Emacs 23.1 on Mac OS X 10.6.1 (aka Snow Leopard)?

Same Situation here ...

I also tried the following commands (in the Emacs 23 source dir):

$ cvs update                                 # as of 7th November 2009

$./configure --with-ns CC='gcc -arch i386'

$ make bootstrap
...
...
...
Loading minibuffer...
Loading button...
Loading startup...
Invalid function: "/Users/anupam/code/emacs/emacs23/lisp/startup.elc"
make[1]: *** [bootstrap-emacs] Error 255
make: *** [src] Error 2


Finally failure at end of the bootstrap. 


-- 
Anupam



















      








^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-08 16:18 Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed Florent Georges
  2009-11-08 17:40 ` Anupam Sengupta
@ 2009-11-08 21:54 ` David Reitter
  2009-11-09 22:25   ` Florent Georges
  2009-11-10  6:09   ` Harald Maier
  2009-11-08 23:11 ` Yavuz
  2 siblings, 2 replies; 11+ messages in thread
From: David Reitter @ 2009-11-08 21:54 UTC (permalink / raw)
  To: lists; +Cc: emacs-devel

On Nov 8, 2009, at 11:18 AM, Florent Georges wrote:
>  Hi,
>
>  I've just bought a new MacBook Pro.  I've installed Apple's
> Xcode (version "Xcode 3.2.1 for Mac OS X 10.6 Snow Leopard",
> filename "xcode321_10m2003_developerdvd.dmg".)  Then I tried to
> build GNU Emacs 23.1 (from release file "emacs-23.1.tar.bz2".)

Don't use the release - I don't think it builds.
Check out the head/master branch via CVS or the git mirror, then build  
with

CC='gcc -arch i386' ./configure --with-ns

(Not sure if the above CC workaround is still needed at this point.   
OS X 10.6 will build with 64bit by default, which was the problem  
there - a patch is either in the works or has been checked in recently  
so you can build a 64bit variant.  Somebody told me it's snappier.)

Hope that helps.

- David




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-08 16:18 Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed Florent Georges
  2009-11-08 17:40 ` Anupam Sengupta
  2009-11-08 21:54 ` David Reitter
@ 2009-11-08 23:11 ` Yavuz
  2 siblings, 0 replies; 11+ messages in thread
From: Yavuz @ 2009-11-08 23:11 UTC (permalink / raw)
  To: emacs-devel

Florent Georges <lists <at> fgeorges.org> writes:

> 
>   Did I do anything wrong?  Has someone succeeded to build GNU
> Emacs 23.1 on Mac OS X 10.6.1 (aka Snow Leopard)?
> 
> 

I don't think 23.1 release builds on SL (or at least I couldn't). The
current head from git repository builds and runs fine though, i.e.:

git clone git://git.sv.gnu.org/emacs.git
cd emacs
./configure --with-ns && make bootstrap && make install

then move the Emacs.app from emacs/nextstep into Applications. To keep
up-to-date:

cd emacs
git pull
make extraclean
./configure --with-ns && make bootstrap && make install

(The extraclean and bootstrap targets are probably overkill, but we
each have our incantations.)






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-08 21:54 ` David Reitter
@ 2009-11-09 22:25   ` Florent Georges
  2009-11-09 23:03     ` Lennart Borgman
  2009-11-10  1:39     ` David Reitter
  2009-11-10  6:09   ` Harald Maier
  1 sibling, 2 replies; 11+ messages in thread
From: Florent Georges @ 2009-11-09 22:25 UTC (permalink / raw)
  To: David Reitter; +Cc: emacs-devel

David Reitter wrote:

> Don't use the release - I don't think it builds..
> Check out the head/master branch via CVS

  Thanks!  I've just tried, and got the same error aaditya reported earlier today (menu.c:1077: error: ‘EmacsMenu’ undeclared, as well as 3 other identifiers undeclared in this same file.)  Do you know a tag or something else I can specifically check out from CVS to have a code base that builds on Snow Leopard?

  Thanks for the help, regards,

-- 
Florent Georges
http://www.fgeorges.org/

























^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-09 22:25   ` Florent Georges
@ 2009-11-09 23:03     ` Lennart Borgman
  2009-11-10  1:57       ` Lennart Borgman
  2009-11-10  1:39     ` David Reitter
  1 sibling, 1 reply; 11+ messages in thread
From: Lennart Borgman @ 2009-11-09 23:03 UTC (permalink / raw)
  To: lists; +Cc: David Reitter, emacs-devel

On Mon, Nov 9, 2009 at 11:25 PM, Florent Georges <lists@fgeorges.org> wrote:
> David Reitter wrote:
>
>> Don't use the release - I don't think it builds..
>> Check out the head/master branch via CVS
>
>  Thanks!  I've just tried, and got the same error aaditya reported earlier today (menu.c:1077: error: ‘EmacsMenu’ undeclared, as well as 3 other identifiers undeclared in this same file.)  Do you know a tag or something else I can specifically check out from CVS to have a code base that builds on Snow Leopard?


I wonder if they are related to some problems I have seen with the
menus on w32 - with my patched version of Emacs. I sometimes get
errors that entries in a menu are undefined, but when I try again it
works.

Since no one have reported this problem before I have not cared very
much about it. I believe it has something to do with that in the
patched version it is much easier to access the menus from the
keyboard (at least if you are using the w32 windows keys as meta and
leave the Alt key to the w32 gui handler so it can open the menus).

There seem to be some initialization that is done in the wrong order.
Maybe my case is a different one than the problems you are seeing now,
of course, since I use a slightly patched version.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-09 22:25   ` Florent Georges
  2009-11-09 23:03     ` Lennart Borgman
@ 2009-11-10  1:39     ` David Reitter
  2009-11-10 20:40       ` Florent Georges
  1 sibling, 1 reply; 11+ messages in thread
From: David Reitter @ 2009-11-10  1:39 UTC (permalink / raw)
  To: lists; +Cc: emacs-devel

On Nov 9, 2009, at 5:25 PM, Florent Georges wrote:

> David Reitter wrote:
>
>> Don't use the release - I don't think it builds..
>> Check out the head/master branch via CVS
>
>  Thanks!  I've just tried, and got the same error aaditya reported  
> earlier today (menu.c:1077: error: ‘EmacsMenu’ undeclared, as well  
> as 3 other identifiers undeclared in this same file.)  Do you know a  
> tag or something else I can specifically check out from CVS to have  
> a code base that builds on Snow Leopard?

I don't think this is related to Snow Leopard at all.  Try reverting  
Stefan's refactoring change by going back to revision 585ff9 (November  
8).

I've seen the same compile problem today but couldn't directly tell  
what the problem was, since nsterm.h is already included in menu.c, so  
EmacsMenu should be declared.

Please do look into it if you can.






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-09 23:03     ` Lennart Borgman
@ 2009-11-10  1:57       ` Lennart Borgman
  0 siblings, 0 replies; 11+ messages in thread
From: Lennart Borgman @ 2009-11-10  1:57 UTC (permalink / raw)
  To: lists; +Cc: David Reitter, emacs-devel

On Tue, Nov 10, 2009 at 12:03 AM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
> On Mon, Nov 9, 2009 at 11:25 PM, Florent Georges <lists@fgeorges.org> wrote:
>> David Reitter wrote:
>>
>>> Don't use the release - I don't think it builds..
>>> Check out the head/master branch via CVS
>>
>>  Thanks!  I've just tried, and got the same error aaditya reported earlier today (menu.c:1077: error: ‘EmacsMenu’ undeclared, as well as 3 other identifiers undeclared in this same file.)  Do you know a tag or something else I can specifically check out from CVS to have a code base that builds on Snow Leopard?
>
>
> I wonder if they are related to some problems I have seen with the
> menus on w32 - with my patched version of Emacs. I sometimes get
> errors that entries in a menu are undefined, but when I try again it
> works.
>
> Since no one have reported this problem before I have not cared very
> much about it. I believe it has something to do with that in the
> patched version it is much easier to access the menus from the
> keyboard (at least if you are using the w32 windows keys as meta and
> leave the Alt key to the w32 gui handler so it can open the menus).
>
> There seem to be some initialization that is done in the wrong order.
> Maybe my case is a different one than the problems you are seeing now,
> of course, since I use a slightly patched version.

Eh, sorry. This was totally unrelated.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-08 21:54 ` David Reitter
  2009-11-09 22:25   ` Florent Georges
@ 2009-11-10  6:09   ` Harald Maier
  2009-11-10 12:48     ` David Reitter
  1 sibling, 1 reply; 11+ messages in thread
From: Harald Maier @ 2009-11-10  6:09 UTC (permalink / raw)
  To: emacs-devel

David Reitter <david.reitter@gmail.com> writes:

> On Nov 8, 2009, at 11:18 AM, Florent Georges wrote:
>>  Hi,
>>
>>  I've just bought a new MacBook Pro.  I've installed Apple's
>> Xcode (version "Xcode 3.2.1 for Mac OS X 10.6 Snow Leopard",
>> filename "xcode321_10m2003_developerdvd.dmg".)  Then I tried to
>> build GNU Emacs 23.1 (from release file "emacs-23.1.tar.bz2".)
>
> Don't use the release - I don't think it builds.
> Check out the head/master branch via CVS or the git mirror, then build
> with
>
> CC='gcc -arch i386' ./configure --with-ns
>
> (Not sure if the above CC workaround is still needed at this point.
> OS X 10.6 will build with 64bit by default, which was the problem
> there - a patch is either in the works or has been checked in recently
> so you can build a 64bit variant.  Somebody told me it's snappier.)

64bit works fine for me:

GNU Emacs 23.1.50.2 (x86_64-apple-darwin10.0.0, NS apple-appkit-1038.11)
 of 2009-11-09 on ate.maierh

$ file Emacs.app/Contents/MacOS/Emacs
Emacs.app/Contents/MacOS/Emacs: Mach-O 64-bit executable x86_64

Harald






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-10  6:09   ` Harald Maier
@ 2009-11-10 12:48     ` David Reitter
  0 siblings, 0 replies; 11+ messages in thread
From: David Reitter @ 2009-11-10 12:48 UTC (permalink / raw)
  To: Emacs development discussions

On Nov 10, 2009, at 1:09 AM, Harald Maier wrote:
> 64bit works fine for me:
>
> GNU Emacs 23.1.50.2 (x86_64-apple-darwin10.0.0, NS apple- 
> appkit-1038.11)
> of 2009-11-09 on ate.maierh

Same here.  No real-world advantages seen, so far, but others have.
Thanks to Erik Charlebois and Adrian Robert for doing the work!




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed
  2009-11-10  1:39     ` David Reitter
@ 2009-11-10 20:40       ` Florent Georges
  0 siblings, 0 replies; 11+ messages in thread
From: Florent Georges @ 2009-11-10 20:40 UTC (permalink / raw)
  To: Emacs development discussions; +Cc: emacs-devel

David Reitter wrote:

> I don't think this is related to Snow Leopard at all. 
> Try reverting Stefan's refactoring change by going back to
> revision 585ff9 (November 8).

> I've seen the same compile problem today but couldn't
> directly tell what the problem was, since nsterm.h is
> already included in menu.c, so EmacsMenu should be
> declared.

> Please do look into it if you can.

  I've just tried a fresh checkout, it fails the same way.  With a checkout of Nov. 8 (-D 2009-11-08) the build succeed, and I can now use Emacs.app!  So it seems there is a bug introduced at the compile time level on Mac OS X (at least 10.6) for what is worth noting.

  Thanks for your help, regards,

-- 
Florent Georges
http://www.fgeorges.org/


























^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-11-10 20:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-08 16:18 Emacs 23.1 on Mac OS X 10.6.1 (Snow Leopard) - build failed Florent Georges
2009-11-08 17:40 ` Anupam Sengupta
2009-11-08 21:54 ` David Reitter
2009-11-09 22:25   ` Florent Georges
2009-11-09 23:03     ` Lennart Borgman
2009-11-10  1:57       ` Lennart Borgman
2009-11-10  1:39     ` David Reitter
2009-11-10 20:40       ` Florent Georges
2009-11-10  6:09   ` Harald Maier
2009-11-10 12:48     ` David Reitter
2009-11-08 23:11 ` Yavuz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.