build fails on win32, at linking, for '-lgomp' not found

Bug #616633 reported by Mat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

Hi, I encountered win32 build error, at linking time,

mingw32-g++ -o build/inkscape.exe -mwindows -mthreads build\inkres.o build\obj\main.o build\obj\winmain.o build\libinkscape.a -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpoppler -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpoppler-glib -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgobject-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lglib-2.0 -lintl -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgdk-win32-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgdk_pixbuf-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpangowin32-1.0 -lgdi32 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpango-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpangocairo-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lcairo -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpoppler -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgtkmm-2.4 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lglibmm-2.4 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgobject-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lglib-2.0 -lintl -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lsigc-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgiomm-2.4 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgio-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgdkmm-2.4 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpangomm-1.4 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgdk-win32-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgdk_pixbuf-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpangowin32-1.0 -lgdi32 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpango-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpangocairo-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lcairo -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lcairomm-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -latkmm-1.6 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -latk-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgtk-win32-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgdk-win32-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpangoft2-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lpango-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lglib-2.0 -lintl -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lfreetype -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lfontconfig -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgthread-2.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lglib-2.0 -lintl D:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/bin/libxml2.dll D:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/bin/libxslt.dll -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lcairo -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lcairomm-1.0 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lcairo -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lwpg-0.1 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lwpd-0.8 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lwpg-stream-0.1 -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lwpd-0.8 -liconv -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lMagick++ -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lMagickCore -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lfontconfig -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lfreetype -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -llcms -LD:\Mat\kderoot\devel\inkscape-devel\inkscape\..\devlibs/lib -lgsl -lgslcblas -lm -lpng -ljpeg -ltiff -lpopt -lz -lgc -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm -lgomp -lpthreadGC2 -laspell -lmscms

Make error line 479: LINK problem: d:/mat/kderoot/devel/inkscape-devel/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lgomp

( detail is in attachment )

I cannot fount -lgomp, I wounder whether there is something missing?

My platform is:
os => windows7, 32-bits
rev=> 9702, from trunk
reproduce step => http://wiki.inkscape.org/wiki/index.php/Win32Port

hope these infomation helps.

Tags: build win32
Revision history for this message
Mat (matlinuxer2) wrote :
Revision history for this message
Mat (matlinuxer2) wrote :

A small BAT script is also attached for convenient use, wish it helps...

Revision history for this message
su_v (suv-lp) wrote :

see also <http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/34669>

Two proposed solutions:
a) «Just have to select OpenMP Support when installing TDM-GCC to fix this»
b) «Apparently the location of libgomp has been changed in 4.5, so I moved it to the old location (lib/gcc/mingw32/bin), as I figured changing the location in the build files would probably break older versions.»

tags: added: build win32
Revision history for this message
su_v (suv-lp) wrote :

Changing status to 'Confirmed' because the same issue was reported and confirmed for GCC 4.5 in inkscape-devel.

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Mat (matlinuxer2) wrote :

Verified.
The solution referred in mailling-list works. And rev=9072 pass build and launch program successfully.
Many thanks!

Revision history for this message
Kris (kris-degussem) wrote :

I have updated the information on the wiki on how to compile inkscape on windows:
http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows#Install_the_compiler

Changed in inkscape:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.