Date: Wed, 08 Nov 2017 10:22:12 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223518] [PATCH] editors/emacs: /usr/bin/ld: cannot find -lomp Message-ID: <bug-223518-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223518 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@FreeBSD.org Reporter: kalten@gmx.at Assignee: ashish@FreeBSD.org Keywords: patch Flags: maintainer-feedback?(ashish@FreeBSD.org) Created attachment 187845 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187845&action= =3Dedit editors/emacs: link-error openmp patch [1] Greetings! Iff compiling editors/emacs with the following options under poudriere > ---Begin OPTIONS List--- > =3D=3D=3D> The following configuration options are available for emacs25-= 25.3_1,3: > ACL=3Don: Access control list support > CANNA=3Doff: Japanese input support > DBUS=3Don: D-Bus IPC system support > GNUTLS=3Don: SSL/TLS support via GnuTLS > LLDB=3Doff: LLDB support for GUD > MODULES=3Don: Dynamic modules support > SOURCES=3Don: Install sources > X11=3Don: X window system support > XML=3Don: XML format or parser support > =3D=3D=3D=3D> Graphics support (each implies X11) > CAIRO=3Doff: Experimental Cairo library support (implies PNG, XF= T) > GIF=3Don: GIF image format support > JPEG=3Don: JPEG image format support > MAGICK=3Don: ImageMagick image processing support > PNG=3Don: PNG image format support > SVG=3Don: Scalable vector graphics support (implies PNG) > TIFF=3Don: TIFF image format support > XPM=3Don: XPM pixmap image format support > =3D=3D=3D=3D> Other X11-dependent (each implies X11) > GCONF=3Don: GConf configuration backend support > GSETTINGS=3Don: GSettings API for application settings > M17N=3Don: M17N for text-shaping (implies XFT) > OTF=3Don: Opentype fonts (implies XFT) > SCROLLBARS=3Don: Toolkit scroll-bars > XFT=3Don: Xft font library support > XIM=3Don: X Input Method > XWIDGETS=3Doff: GTK widgets in Emacs buffers (requires GTK= 3) > =3D=3D=3D=3D> File notification support: you can only select none or one = of them > GFILE=3Doff: File notification via gfile > KQUEUE=3Don: File notification via kqueue > =3D=3D=3D=3D> Sound (audio) support: you can only select none or one of t= hem > ALSA=3Doff: ALSA audio architecture support > OSS=3Don: Open Sound System support > =3D=3D=3D=3D> X11 toolkit (each implies X11): you can only select none or= one of them > GTK2=3Doff: GTK+ 2 GUI toolkit support > GTK3=3Don: GTK+ 3 GUI toolkit support > MOTIF=3Doff: Motif widget library support > XAW=3Doff: Athena widgets > XAW3D=3Doff: Athena3D widgets > =3D=3D=3D> 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/incl= ude/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/u= sr/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-sp= i2-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_SA= FE -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/libp= ng16 -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/u= sr/local/include/ImageMagick-6 -fopenmp -DMAGICKCORE_HDRI_ENABLE=3D1 -DMAGI= CKCORE_QUANTUM_DEPTH=3D16 -I/usr/local/include/libpng16 -I/usr/local/inclu= de/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_THR= EAD_SAFE -pthread -I/usr/local/include -D_THREAD_SAFE -pthread -I/usr/lo= cal/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/us= r/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/orbi= t-2.0 -DORBIT2=3D1 -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/free= type2 -I/usr/local/include -I/usr/local/include -MMD -MF deps/.d -MP -I/u= sr/local/include -I/usr/local/include/p11-kit-1 -Wno-switch -Wno-tautolo= gical-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 xs= ettings.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 allo= c.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 gn= utls.o callproc.o region-cache.o sound.o atimer.o doprnt.o intervals.o text= prop.o composite.o xml.o kqueue.o profiler.o decompress.o xfont.o ftfo= nt.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/lo= cal/lib -lXft -L/usr/local/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -l= gobject-2.0 -lglib-2.0 -lintl -lcairo -lpthread -L/usr/local/lib -lMagickW= and-6 -lMagickCore-6 -lrt -L/usr/local/lib -ldbus-1 -lexecinfo -L/us= r/local/lib -lXrandr -L/usr/local/lib -lXinerama -L/usr/local/lib -lXfixe= s -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 -li= ntl -L/usr/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/usr/local/lib -l= freetype -L/usr/local/lib -lfontconfig -lfreetype -L/usr/local/lib -lotf = -lfreetype -L/usr/local/lib -lm17n-flt -lm17n-core -L/usr/local/lib -lgnu= tls -lpthread -lm -lz=20 > /usr/bin/ld: cannot find -lomp > cc: error: linker command failed with exit code 1 (use -v to see invocati= on) > gmake[2]: *** [Makefile:596: temacs] Error 1 --->8... It seems to be necessary to add =E2=80=98compiler:openmp=E2=80=99 to the = =E2=80=98USES=E2=80=99 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=E2=80=94I have not looked into the matter yet. Regards, Kalten --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223518-13>