Opened 12 years ago

Closed 12 years ago

#31679 closed defect (fixed)

xemacs: build failed on 10.7.2 & xcode 4.2 (clang)

Reported by: jwest@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion clang Cc: revenu@…
Port: xemacs

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  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 (2)

xemacs-failed (50.1 KB) - added by jwest@… 12 years ago.
Portfile.diff (981 bytes) - added by howarth@… 12 years ago.
use configure.compiler conditionals

Download all attachments as: .zip

Change History (14)

Changed 12 years ago by jwest@…

Attachment: xemacs-failed added

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

Description: modified (diff)
Keywords: lion added
Owner: changed from macports-tickets@… to mww@…
Summary: xemacs- build failed on 2.72 & xcode 4.2xemacs- build failed on 10.7.2 & xcode 4.2

Has duplicate #31680.

comment:2 in reply to:  description ; Changed 12 years ago by asic512

Replying to jwest@…:

I have the same kind of error for xemacs and for many other ports.

comment:3 in reply to:  2 ; Changed 12 years ago by asic512

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 12 years 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 12 years 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 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: revenu@… added
Keywords: clang added
Owner: changed from mww@… to ryandesign@…
Status: newassigned
Summary: xemacs- build failed on 10.7.2 & xcode 4.2xemacs: build failed on 10.7.2 & xcode 4.2 (clang)

Has duplicate #32462.

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

Resolution: fixed
Status: assignedclosed

comment:8 Changed 12 years ago by revenu@…

Resolution: fixed
Status: closedreopened

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 12 years ago by ryandesign (Ryan Carsten Schmidt)

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 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

comment:11 Changed 12 years ago by howarth@…

Resolution: fixed
Status: closedreopened

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 12 years ago by howarth@…

Attachment: Portfile.diff added

use configure.compiler conditionals

comment:12 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

Thanks; r90402.

Note: See TracTickets for help on using tickets.