Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635096 - sci-libs/adolc-2.6.3 USE="sparse" not working with message "ADOL-C error: function %s can only be used if linked with ColPack"
Summary: sci-libs/adolc-2.6.3 USE="sparse" not working with message "ADOL-C error: fun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-22 20:24 UTC by Paweł Szklarz
Modified: 2021-05-25 18:57 UTC (History)
1 user (show)

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


Attachments
Emerge log with USE="sparse" (sci-libs:adolc-2.6.3:20171022-201741.log,81.99 KB, text/x-log)
2017-10-22 20:24 UTC, Paweł Szklarz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Szklarz 2017-10-22 20:24:07 UTC
Created attachment 499684 [details]
Emerge log with USE="sparse"

When using the sparse flag, adolc should be linked with ColPack. Such relation is defined on the use flags, but the patch "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch always disables ColPack on the configuration process.

The result is that config.h do not contains the flag HAVE_LIBCOLPACK and errors like
fprintf(DIAG_OUT, "ADOL-C error: function %s can only be used if linked with ColPack\n", __FUNCTION__);
are returned when using the library.

Deleting the 2.5.0-no-colpack.patch creates a library that works correctly.

On the attached emerge log, not that -lColPack is not used when linking.