Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 461976

Summary: =sci-mathematics/yafu-1.34.3 fails to build due to missing link flags
Product: Gentoo Linux Reporter: Coacher <itumaykin+gentoo>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: patrick
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
fix-missing-link-flags.patch

Description Coacher 2013-03-17 07:14:48 UTC
I've tried to emerge yafu today, but failed. See build.log attached.

The error message there is about undefined reference to OpenMP functions, but I have openmp USE enabled globally and gcc and gmp-ecm are both built with openmp support. Maybe there is some link flag missing?

Reproducible: Always
Comment 1 Coacher 2013-03-17 07:15:04 UTC
Created attachment 342324 [details]
build.log
Comment 2 Coacher 2013-03-17 07:28:36 UTC
Created attachment 342326 [details]
fix-missing-link-flags.patch

Proposed patch that adds `-lgomp` to link flags. After it I was able to succesfully finish `make x86_64` build.
Comment 3 Patrick Lauer gentoo-dev 2013-03-21 08:11:05 UTC
+  21 Mar 2013; Patrick Lauer <patrick@gentoo.org> +files/fix-Makefile.patch,
+  yafu-1.34.3.ebuild:
+  Add more linker flags #461976


Excellent, thanks!