Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473580 - sci-mathematics/msieve-1.51 - /usr/lib64/libecm.so: undefined reference to `omp_get_thread_num'
Summary: sci-mathematics/msieve-1.51 - /usr/lib64/libecm.so: undefined reference to `o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-06-17 11:37 UTC by Johannes Bauer
Modified: 2013-06-18 03:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes described problem (lgomp.patch,536 bytes, patch)
2013-06-17 11:37 UTC, Johannes Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Bauer 2013-06-17 11:37:05 UTC
Created attachment 351204 [details, diff]
Fixes described problem

EBuild sci-mathematics/msieve-1.51 fails to build on my system:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `omp_get_thread_num'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `GOMP_critical_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `GOMP_parallel_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `omp_get_num_threads'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `omp_get_thread_limit'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `GOMP_barrier'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `GOMP_parallel_start'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libecm.so: undefined reference to `GOMP_critical_start'

Tracked the problem down to a missing library in the Makefile and created an appropriate patch (attached). Save the patch as /etc/portage/patches/sci-mathematics/msieve-1.51/lgomp.patch and it'll build. Maybe consider inclusion into the ebuild.
Comment 1 Patrick Lauer gentoo-dev 2013-06-18 03:38:57 UTC
+  18 Jun 2013; Patrick Lauer <patrick@gentoo.org> msieve-1.51.ebuild:                                                                                                                                                                       
+  Small linking fix #473580, works unconditionally                                                                                                                                                                                          
+