[MacPorts] #31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error
#31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- I use MacPorts on Lion with Xcode 4.2. I found a similar ticket about emacs @22 (http://trac.macports.org/ticket/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. -- Ticket URL: <https://trac.macports.org/ticket/31783> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => css@… * cc: css@… (removed) Old description:
I use MacPorts on Lion with Xcode 4.2.
I found a similar ticket about emacs @22 (http://trac.macports.org/ticket/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.
New description: 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. -- -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- Comment(by dtakahashi42@…): 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- Comment(by dtakahashi42@…): I tried universal build for i386 and x86_64 on OSX 10.6.8, macbook pro early 2011. -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- Changes (by jmr@…): * cc: hum@… (added) -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- Comment(by jmr@…): Is this still a problem with 23.4? The buildbot succeeded in building that version. -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 +universal fails compiling with "unexec: input file not in Mach-O format" error ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: emacs-app ----------------------------------------+----------------------------------- Comment(by jmr@…): Oh I see, you're building +universal. You should really mention that in the summary. -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31783: emacs-app @23.3 +universal fails compiling with "unexec: input file not in Mach-O format" error -----------------------------------------+---------------------------------- Reporter: philippe.bernery@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: duplicate | Keywords: Port: emacs-app | -----------------------------------------+---------------------------------- Changes (by hum@…): * status: new => closed * resolution: => duplicate Comment: See the ticket #25166. -- Ticket URL: <https://trac.macports.org/ticket/31783#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts