[Bug 223518] [PATCH] editors/emacs: /usr/bin/ld: cannot find -lomp
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 8 10:22:14 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223518
Bug ID: 223518
Summary: [PATCH] editors/emacs: /usr/bin/ld: cannot find -lomp
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ashish at FreeBSD.org
Reporter: kalten at gmx.at
Assignee: ashish at FreeBSD.org
Keywords: patch
Flags: maintainer-feedback?(ashish at FreeBSD.org)
Created attachment 187845
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187845&action=edit
editors/emacs: link-error openmp patch [1]
Greetings!
Iff compiling editors/emacs with the following options under poudriere
> ---Begin OPTIONS List---
> ===> The following configuration options are available for emacs25-25.3_1,3:
> ACL=on: Access control list support
> CANNA=off: Japanese input support
> DBUS=on: D-Bus IPC system support
> GNUTLS=on: SSL/TLS support via GnuTLS
> LLDB=off: LLDB support for GUD
> MODULES=on: Dynamic modules support
> SOURCES=on: Install sources
> X11=on: X window system support
> XML=on: XML format or parser support
> ====> Graphics support (each implies X11)
> CAIRO=off: Experimental Cairo library support (implies PNG, XFT)
> GIF=on: GIF image format support
> JPEG=on: JPEG image format support
> MAGICK=on: ImageMagick image processing support
> PNG=on: PNG image format support
> SVG=on: Scalable vector graphics support (implies PNG)
> TIFF=on: TIFF image format support
> XPM=on: XPM pixmap image format support
> ====> Other X11-dependent (each implies X11)
> GCONF=on: GConf configuration backend support
> GSETTINGS=on: GSettings API for application settings
> M17N=on: M17N for text-shaping (implies XFT)
> OTF=on: Opentype fonts (implies XFT)
> SCROLLBARS=on: Toolkit scroll-bars
> XFT=on: Xft font library support
> XIM=on: X Input Method
> XWIDGETS=off: GTK widgets in Emacs buffers (requires GTK3)
> ====> File notification support: you can only select none or one of them
> GFILE=off: File notification via gfile
> KQUEUE=on: File notification via kqueue
> ====> Sound (audio) support: you can only select none or one of them
> ALSA=off: ALSA audio architecture support
> OSS=on: Open Sound System support
> ====> X11 toolkit (each implies X11): you can only select none or one of them
> GTK2=off: GTK+ 2 GUI toolkit support
> GTK3=on: GTK+ 3 GUI toolkit support
> MOTIF=off: Motif widget library support
> XAW=off: Athena widgets
> XAW3D=off: Athena3D widgets
> ===> Use 'make config' to modify these settings
> ---End OPTIONS List---
compilation fails on my machine with the error:
...8<---
> gmake[3]: Leaving directory '/wrkdirs/usr/ports/editors/emacs/work/emacs-25.3/admin/unidata'
> cc -Demacs -I. -I. -I../lib -I../lib -I/usr/local/include -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0 -D_THREAD_SAFE -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -pthread -I/usr/local/include -D_THREAD_SAFE -pthread -I/usr/local/include/freetype2 -I/usr/local/include/librsvg-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng16 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libdrm -D_THREAD_SAFE -pthread -I/usr/local/include/ImageMagick-6 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/libpng16 -I/usr/local/include/libxml2 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include -D_THREAD_SAFE -pthread -I/usr/local/include -D_THREAD_SAFE -pthread -I/usr/local/include -D_THREAD_SAFE -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -pthread -I/usr/local/include/gconf/2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/orbit-2.0 -DORBIT2=1 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -MMD -MF deps/.d -MP -I/usr/local/include -I/usr/local/include/p11-kit-1 -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign -Wno-string-plus-int -Wno-unknown-attributes -O2 -pipe -fstack-protector -fno-strict-aliasing -Wl,-znocombreloc -fstack-protector -L/usr/local/lib \
> -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o gtkutil.o emacsgtkfixed.o dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o dynlib.o emacs-module.o syntax.o unexelf.o bytecode.o process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o kqueue.o profiler.o decompress.o xfont.o ftfont.o xftfont.o ftxfont.o fontset.o fringe.o image.o xgselect.o terminfo.o lastfile.o gmalloc.o ../lib/libgnu.a -ltiff -ljpeg -lpng16 -lgif -lXpm -L/usr/local/lib -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lpthread -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lSM -lICE -lX11 -lX11-xcb -lxcb -lXrender -L/usr/local/lib -lXft -L/usr/local/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lpthread -L/usr/local/lib -lMagickWand-6 -lMagickCore-6 -lrt -L/usr/local/lib -ldbus-1 -lexecinfo -L/usr/local/lib -lXrandr -L/usr/local/lib -lXinerama -L/usr/local/lib -lXfixes -L/usr/local/lib -lxml2 -lutil -lncurses -L/usr/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/lib -lgconf-2 -lglib-2.0 -lintl -L/usr/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/lib -lfreetype -L/usr/local/lib -lfontconfig -lfreetype -L/usr/local/lib -lotf -lfreetype -L/usr/local/lib -lm17n-flt -lm17n-core -L/usr/local/lib -lgnutls -lpthread -lm -lz
> /usr/bin/ld: cannot find -lomp
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> gmake[2]: *** [Makefile:596: temacs] Error 1
--->8...
It seems to be necessary to add ‘compiler:openmp’ to the ‘USES’ variable in
the Makefile of the emacs port. I am not sure whether it is the correct
way of solving this. (see patch file)
Iff I am not mistaken, it does use gcc6 instead of clang after this change.
I think it may have to do with ImageMagick.
The ports multimedia/transcode and multimedia/libxine might suffer from the
same problem—I have not looked into the matter yet.
Regards,
Kalten
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list