Ticket #31679 (closed defect: fixed)
xemacs: build failed on 10.7.2 & xcode 4.2 (clang)
| Reported by: | jwest@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | lion clang | Cc: | revenu@… |
| Port: | xemacs |
Description (last modified by ryandesign@…) (diff)
---> Building xemacs Error: Target org.macports.build returned: shell command failed (see log for details) Log for xemacs is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/main.log Error: Status 1 encountered during processing.
:notice:build ---> Building xemacs
:debug:build Executing org.macports.build (xemacs)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22" && /usr/bin/make -j4 -w all'
:debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22" && /usr/bin/make -j4 -w all
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22'
:info:build cd ./lib-src && /usr/bin/make all
:info:build cd ./lwlib && /usr/bin/make all
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/man && /usr/bin/make info
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/lwlib'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/lwlib'
:info:build cd ./src && /usr/bin/make all
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/lib-src'
:info:build make[1]: Nothing to be done for `all'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/lib-src'
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/man'
:info:build make[1]: Nothing to be done for `info'.
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/man'
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/src'
:info:build /Developer/usr/bin/clang -O2 -arch x86_64 -L/opt/local/lib -Wl,-no_pie -Xlinker -arch -Xlinker x86_64 -L/opt/local/lib -L/opt/local/lib -o xemacs abbrev.o alloc.o blocktype.o buffer.o bytecode.o callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o cmds.o console.o console-stream.o data.o device.o dired.o doc.o doprnt.o dynarr.o editfns.o elhash.o emacs.o eval.o events.o filelock.o dumper.o balloon_help.o balloon-x.o dgif_lib.o gif_io.o menubar.o scrollbar.o dialog.o toolbar.o menubar-x.o scrollbar-x.o dialog-x.o toolbar-x.o gui-x.o mule.o mule-ccl.o mule-charset.o file-coding.o input-method-xlib.o realpath.o inline.o console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o terminfo.o event-unixoid.o database.o sysdll.o emodules.o process-unix.o event-stream.o extents.o faces.o fileio.o filemode.o floatfns.o fns.o font-lock.o frame.o general.o glyphs.o glyphs-eimage.o glyphs-widget.o gui.o gutter.o hash.o imgproc.o indent.o insdel.o intl.o keymap.o line-number.o lread.o lstream.o macros.o marker.o md5.o minibuf.o objects.o opaque.o print.o process.o profile.o rangetab.o redisplay.o redisplay-output.o regex.o search.o select.o signal.o sound.o specifier.o strftime.o symbols.o syntax.o sysdep.o undo.o console-x.o device-x.o event-Xt.o frame-x.o glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o widget.o window.o lastfile.o EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o dump-id.o ../lwlib/liblw.a -lXaw3d -ltiff -lpng -ljpeg -lz -lcompface -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lgdbm -lncurses -lintl
:info:build ld: duplicate symbol _TRUE_LIST_P in alloc.o and abbrev.o for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [xemacs] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/src'
:info:build make: *** [src] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/work/xemacs-21.4.22" && /usr/bin/make -j4 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for xemacs): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for xemacs is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_xemacs/xemacs/main.log
Attachments
Change History
comment:1 Changed 19 months ago by ryandesign@…
- Keywords lion added
- Owner changed from macports-tickets@… to mww@…
- Description modified (diff)
- Summary changed from xemacs- build failed on 2.72 & xcode 4.2 to xemacs- build failed on 10.7.2 & xcode 4.2
Has duplicate #31680.
comment:2 in reply to: ↑ description ; follow-up: ↓ 3 Changed 19 months ago by pf15@…
Replying to jwest@…:
I have the same kind of error for xemacs and for many other ports.
comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 19 months ago by pf15@…
In fact, I succeeded in building xemacs : I tried
You could try building sphinx with llvm-gcc-4.2 instead of clang:
sudo port clean xemacs sudo port install xemacs configure.compiler=llvm-gcc-4.2
comment:4 in reply to: ↑ 3 Changed 19 months ago by jwest@…
Replying to pf15@…:
In fact, I succeeded in building xemacs : I tried
You could try building sphinx with llvm-gcc-4.2 instead of clang:
sudo port clean xemacs sudo port install xemacs configure.compiler=llvm-gcc-4.2
Thanks very much for this suggestion -- with this option the build was successful -
comment:5 Changed 18 months ago by gawbul@…
I had the same issue, but this was also solved using pf15's method:
sudo port clean xemacs sudo port install xemacs configure.compiler=llvm-gcc-4.2
Many thanks!
comment:6 Changed 18 months ago by ryandesign@…
- Owner changed from mww@… to ryandesign@…
- Status changed from new to assigned
- Cc revenu@… added
- Keywords clang added
- Summary changed from xemacs- build failed on 10.7.2 & xcode 4.2 to xemacs: build failed on 10.7.2 & xcode 4.2 (clang)
Has duplicate #32462.
comment:7 Changed 18 months ago by ryandesign@…
- Status changed from assigned to closed
- Resolution set to fixed
comment:8 Changed 18 months ago by revenu@…
- Status changed from closed to reopened
- Resolution fixed deleted
Thanks a lot. I used the solution you proposed (modify the compiler on the cmd line). xemacs is now installed but the execution fails:
~home->xemacs dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib Referenced from: /opt/local/lib/libXpm.4.dylib Reason: Incompatible library version: libXpm.4.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 Trace/BPT trap: 5
comment:9 Changed 18 months ago by ryandesign@…
revenu, please use WikiFormatting. This new problem is because your libiconv port is not installed for the correct architecture. You may need to rebuild it, and possibly other ports; see if Migration is applicable. If you need further help, please write to the macports-users mailing list.
comment:10 Changed 18 months ago by ryandesign@…
- Status changed from reopened to closed
- Resolution set to fixed
comment:11 Changed 15 months ago by howarth@…
- Status changed from closed to reopened
- Resolution fixed deleted
The proper fix for this issue wasn't to resort to llvm-gcc-4.2 to pass -std=c89 on CFLAGS to eliminate the duplicate inline symbol linkage error. See...
http://wiki.freebsd.org/PortsAndClang
undefined or duplicate symbols while linking
clang defaults to gnu99, while gcc defaults to gnu89. This causes problems with the inline and restrict keywords (and possibly others). inline does different things in gnu89/gnu99
Changed 15 months ago by howarth@…
- Attachment Portfile.diff added
use configure.compiler conditionals
comment:12 Changed 15 months ago by ryandesign@…
- Status changed from reopened to closed
- Resolution set to fixed
Thanks; r90402.

