unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* compiling emacs-devel on Mac OS X Lion fails
@ 2022-07-24  6:40 Werner LEMBERG
  2022-07-24  7:22 ` Po Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Werner LEMBERG @ 2022-07-24  6:40 UTC (permalink / raw)
  To: emacs-devel, macports-users


The 'emacs-devel' package of MacPorts is currently based on commit
4650ea9c25514831d925e5006ea0c3679344333b (from 2022-Jul-12).

On Mac OS X 10.7.5 (Lion), emacs 27.2 builds fine.  However, the above
commit fails with

```
./temacs --batch  -l loadup --temacs=pbootstrap \
         --bin-dest /opt/local/bin/ \
         --eln-dest /opt/local/lib/emacs/29.0.50/
Warning: arch-independent data dir
  '/opt/local/share/emacs/29.0.50/etc/': Invalid argument
Warning: Lisp directory
  '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_emacs/emacs-devel/work/emacs-20220712/lisp':
  Invalid argument
Error: /opt/local/share/emacs/29.0.50/etc/charsets: Invalid argument
Emacs will not function correctly without the character map files.
```

Does this ring a bell?  I reported the problem already in

  https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00803.html

without progress then.  It also fails on Mountain Lion and Mavericks,
BTW; the earliest Mac OS version that successfully builds
'emacs-devel' is Yosemite.

For more details on the builds (including *huge* log files > 100MB
because of zillion compilation warnings that weren't present in 27.2)
see

  https://ports.macports.org/port/emacs-devel/details/


    Werner


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

* Re: compiling emacs-devel on Mac OS X Lion fails
  2022-07-24  6:40 compiling emacs-devel on Mac OS X Lion fails Werner LEMBERG
@ 2022-07-24  7:22 ` Po Lu
  2022-07-24 11:21   ` Werner LEMBERG
  0 siblings, 1 reply; 3+ messages in thread
From: Po Lu @ 2022-07-24  7:22 UTC (permalink / raw)
  To: Werner LEMBERG; +Cc: emacs-devel, macports-users

Werner LEMBERG <wl@gnu.org> writes:

> The 'emacs-devel' package of MacPorts is currently based on commit
> 4650ea9c25514831d925e5006ea0c3679344333b (from 2022-Jul-12).
>
> On Mac OS X 10.7.5 (Lion), emacs 27.2 builds fine.  However, the above
> commit fails with
>
> ```
> ./temacs --batch  -l loadup --temacs=pbootstrap \
>          --bin-dest /opt/local/bin/ \
>          --eln-dest /opt/local/lib/emacs/29.0.50/
> Warning: arch-independent data dir
>   '/opt/local/share/emacs/29.0.50/etc/': Invalid argument
> Warning: Lisp directory
>   '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_emacs/emacs-devel/work/emacs-20220712/lisp':
>   Invalid argument
> Error: /opt/local/share/emacs/29.0.50/etc/charsets: Invalid argument
> Emacs will not function correctly without the character map files.
> ```
>
> Does this ring a bell?  I reported the problem already in
>
>   https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00803.html
>
> without progress then.  It also fails on Mountain Lion and Mavericks,
> BTW; the earliest Mac OS version that successfully builds
> 'emacs-devel' is Yosemite.
>
> For more details on the builds (including *huge* log files > 100MB
> because of zillion compilation warnings that weren't present in 27.2)
> see
>
>   https://ports.macports.org/port/emacs-devel/details/
>
>
>     Werner

What happens if you build without MacPorts, using the built-in Command
Line Developer Tools instead?



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

* Re: compiling emacs-devel on Mac OS X Lion fails
  2022-07-24  7:22 ` Po Lu
@ 2022-07-24 11:21   ` Werner LEMBERG
  0 siblings, 0 replies; 3+ messages in thread
From: Werner LEMBERG @ 2022-07-24 11:21 UTC (permalink / raw)
  To: luangruo; +Cc: macports-users, emacs-devel

[-- Attachment #1: Type: Text/Plain, Size: 2288 bytes --]


>> The 'emacs-devel' package of MacPorts is currently based on commit
>> 4650ea9c25514831d925e5006ea0c3679344333b (from 2022-Jul-12).
>>
>> On Mac OS X 10.7.5 (Lion), emacs 27.2 builds fine.  However, the above
>> commit fails with
>>
>> ```
>> ./temacs --batch  -l loadup --temacs=pbootstrap \
>>          --bin-dest /opt/local/bin/ \
>>          --eln-dest /opt/local/lib/emacs/29.0.50/
>> Warning: arch-independent data dir
>>   '/opt/local/share/emacs/29.0.50/etc/': Invalid argument
>> Warning: Lisp directory
>>   '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_editors_emacs/emacs-devel/work/emacs-20220712/lisp':
>>   Invalid argument
>> Error: /opt/local/share/emacs/29.0.50/etc/charsets: Invalid argument
>> Emacs will not function correctly without the character map files.
>> ```
> 
> What happens if you build without MacPorts, using the built-in
> Command Line Developer Tools instead?

Good idea!  Executing this script, which is based on the parameters
used in MacPorts' Portfile for 'emacs-devel',

```
./autogen.sh

CC=/usr/bin/clang \
CFLAGS='-pipe -Os -arch x86_64 -Wno-attributes' \
CPPFLAGS='-I/opt/local/include' \
LDFLAGS='-Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-no_pie -arch x86_64' \
./configure --disable-silent-rules \
            --without-ns \
            --without-x \
            --without-dbus \
            --without-gconf \
            --without-libotf \
            --without-m17n-flt \
            --with-libgmp \
            --with-gnutls \
            --with-json \
            --with-xml2 \
            --with-modules \
            --with-sqlite3 \
            --with-webp

make -j2
```

within an Emacs git clone I could successfully compile and install
master (2024136d31) on my Mac OS X Lion box (and it works, too :-).
This is a build with the system's `/usr/bin/clang` but using a current
MacPorts installation for all additional tools and libraries.

Unfortunately, it is beyond my rudimentary Mac OS X knowledge to find
out why the above works, and why the similar `port install
emacs-devel` fails.

Attached is the log file; thanks to `-Wno-attributes` its uncompressed
size is around 0.5MB instead of 100MB (!).  I will write a separate
e-mail regarding these attribute warnings.


    Werner

[-- Attachment #2: build-emacs.log.xz --]
[-- Type: Application/Octet-Stream, Size: 29804 bytes --]

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

end of thread, other threads:[~2022-07-24 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-24  6:40 compiling emacs-devel on Mac OS X Lion fails Werner LEMBERG
2022-07-24  7:22 ` Po Lu
2022-07-24 11:21   ` Werner LEMBERG

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).