Opened 7 years ago

Closed 7 years ago

#31783 closed defect (duplicate)

emacs-app @23.3 +universal fails compiling with "unexec: input file not in Mach-O format" error

Reported by: philippe.bernery@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: humem (humem), daitakahashi
Port: emacs-app

Description (last modified by ryandesign (Ryan Schmidt))

I use MacPorts on Lion with Xcode 4.2.

I found a similar ticket about emacs @22 (#24913) and applied the given patch. The compilation went further but failed at some point. Here is an extract of the error:

/bin/sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_emacs-app/emacs-app/work/emacs-23.3-x86_64/nextstep/Emacs.app/Contents/MacOS/libexec: No such file or directory
mv: rename emacs/*/*/* to ./*: No such file or directory
/bin/sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_emacs-app/emacs-app/work/emacs-23.3-x86_64/nextstep/Emacs.app/Contents/MacOS/bin: No such file or directory
make: *** No rule to make target `leim/Makefile', needed by `install-leim'.  Stop.
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_emacs-app/emacs-app/work/emacs-23.3-x86_64'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_emacs-app/emacs-app/work/emacs-23.3-x86_64" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_emacs-app/emacs-app/work/destroot-x86_64 " returned error 2

I tried with both clang (the default) and llvm-gcc-4.2 compiler.

Attachments (2)

main.log (88.8 KB) - added by daitakahashi 7 years ago.
main.log (without muniversal workaround)
main.2.log (589.7 KB) - added by daitakahashi 7 years ago.
main.log (with muniversal workaround)

Download all attachments as: .zip

Change History (10)

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: css@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to css@…

comment:2 Changed 7 years ago by daitakahashi

Cc: dtakahashi42@… added

Cc Me!

comment:3 Changed 7 years ago by daitakahashi

Same error occurred here. When the destroot phase stopped with an error No such file or directory with muniversal workaround, working directory for i386 contained only one symbolic link.

$ ls -la work/emacs-23.3-x86_64/
total 2720
drwxr-xr-x   37 macports  admin    1258 11 24 15:51 .
drwxr-xr-x    9 macports  admin     306 11 24 15:52 ..
-rw-r--r--    1 macports  admin     480 11 14  2010 .dir-locals.el
-rw-r--r--    1 macports  admin     949 10 13  2010 BUGS
-rw-r--r--    1 macports  admin   35147  3  8  2011 COPYING
-rw-r--r--    1 macports  admin  242510  3  7  2011 ChangeLog
 ... a lot of files
$ ls -la work/emacs-23.3-i386
total 16
lrwxr-xr-x  1 root      admin   12 11 24 15:52 * -> ../libexec/*
drwxr-xr-x  4 macports  admin  136 11 24 15:52 .
drwxr-xr-x  9 macports  admin  306 11 24 15:52 ..
-rw-r--r--  1 macports  admin  480 11 14  2010 .dir-locals.el
$ ls -la work/emacs-23.3-i386/../libexec
ls: work/emacs-23.3-i386/../libexec: No such file or directory

The main.log at line 8079 seems to be the creation of this file since there were no files named ../libexec in that directory.

8071:info:destroot if test "/opt/local/var/macports/build/_LocalPort_port_aqua_emacs-app/emacs-app/work/emacs-23.3-i386/nextstep/Emacs.app" != ""; then \
8072:info:destroot 	  ( cd /opt/local/var/macports/build/_LocalPort_port_aqua_emacs-app/emacs-app/work/emacs-23.3-i386/nextstep/Emacs.app/Contents/Resources ; \
8073:info:destroot 	    if test -d share/emacs ; then dir=share/emacs/*/*; for i in $dir; do rm -fr `basename "$i"` ; mv "$i" . ; done; fi;\
8074:info:destroot 	    if test -d share/info ; then dir=share/info; for i in $dir; do rm -fr `basename "$i"` ; mv "$i" . ; done ; fi ; \
8075:info:destroot 	    rm -fr share ) ; \
8076:info:destroot 	  ( cd /opt/local/var/macports/build/_LocalPort_port_aqua_emacs-app/emacs-app/work/emacs-23.3-i386/nextstep/Emacs.app/Contents/MacOS/libexec ; dir=emacs/*/*/* ; for i in $dir; do rm -fr `basename "$i"` ; mv "$i" . ; done; \
8077:info:destroot 	    rm -fr emacs ) ; \
8078:info:destroot 	  ( cd /opt/local/var/macports/build/_LocalPort_port_aqua_emacs-app/emacs-app/work/emacs-23.3-i386/nextstep/Emacs.app/Contents/MacOS/bin ; rm -f emacs emacs-23* ; \
8079:info:destroot 	    ln -sf ../libexec/* .) ; \
8080:info:destroot 	else true ; fi
8081:info:destroot /bin/sh: line 0: cd: /opt/local/var/macports/build/_LocalPort_port_aqua_emacs-app/emacs-app/work/emacs-23.3-i386/nextstep/Emacs.app/Contents/MacOS/libexec: No such file or directory
8082:info:destroot mv: rename emacs/*/*/* to ./*: No such file or directory
8083:info:destroot /bin/sh: line 0: cd: /opt/local/var/macports/build/_LocalPort_port_aqua_emacs-app/emacs-app/work/emacs-23.3-i386/nextstep/Emacs.app/Contents/MacOS/bin: No such file or directory

Changed 7 years ago by daitakahashi

Attachment: main.log added

main.log (without muniversal workaround)

Changed 7 years ago by daitakahashi

Attachment: main.2.log added

main.log (with muniversal workaround)

comment:4 Changed 7 years ago by daitakahashi

I tried universal build for i386 and x86_64 on OSX 10.6.8, macbook pro early 2011.

comment:5 Changed 7 years ago by jmroot (Joshua Root)

Cc: hum@… added

comment:6 Changed 7 years ago by jmroot (Joshua Root)

Is this still a problem with 23.4? The buildbot succeeded in building that version.

comment:7 Changed 7 years ago by jmroot (Joshua Root)

Summary: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" erroremacs-app @23.3 +universal fails compiling with "unexec: input file not in Mach-O format" error

Oh I see, you're building +universal. You should really mention that in the summary.

comment:8 Changed 7 years ago by humem (humem)

Resolution: duplicate
Status: newclosed

See the ticket #25166.

Note: See TracTickets for help on using tickets.