Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781242 - dev-lang/julia-1.6.0 build fails due to a missing library dependence in libsuitesparseconfig.so
Summary: dev-lang/julia-1.6.0 build fails due to a missing library dependence in libsu...
Status: UNCONFIRMED
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: 2021-04-08 19:44 UTC by sliwa
Modified: 2022-11-08 11:23 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sliwa 2021-04-08 19:44:00 UTC
/usr/lib64/libsuitesparseconfig.so.0 from sci-libs/suitesparseconfig has an unresolved dynamic symbol (sqrt). I believe this results in failed builds of dev-lang/julia (a symlink to the library cannot be created).
Comment 1 Jeffrey Lin 2021-04-10 19:49:52 UTC
Please provide LDFLAGS used to compile sci-libs/suitesparseconfig.

This is a known issue. dev-lang/julia builds fine if sci-libs/suitesparseconfig is rebuilt with LDFLAGS='-Wl,-O1,--as-needed' (i.e. the defaults). For the meantime, we could add strip-flags to the suitesparseconfig ebuild.
Comment 2 sliwa 2021-04-11 00:28:24 UTC
no LDFLAGS -in /etc/portage/make.conf

build environment includes

declare -x LDFLAGS="-Wl,-O1 -Wl,--as-needed"
declare -x LDFLAGS_amd64="-m elf_x86_64"
declare -x LDFLAGS_default
declare -x LDFLAGS_x32="-m elf32_x86_64"
declare -x LDFLAGS_x86="-m elf_i386"

(this is amd64, hardened-nomultilib profile)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-11 20:16:42 UTC
Please give emerge --info and the full build.log (always).
Comment 4 Alessandro Barbieri 2021-04-12 01:15:14 UTC
I can reproduce on hardened nomultilib
Do you want my log?
Comment 5 Jeffrey Lin 2021-04-12 16:24:36 UTC
I was able to reproduce using the amd64-hardened-nomultilib Docker tag. For the time being, a suitable workaround is to compile suitesparseconfig with -lm in CFLAGS.
Comment 6 Matthias Maier gentoo-dev 2022-06-06 05:10:52 UTC
Is this still reproducible with 1.7.3?
Comment 7 sliwa 2022-06-19 03:33:33 UTC
Yes, I have reproduced the issue again (it requires unmasking a few ebuilds).
Comment 8 gertoe 2022-11-08 11:23:37 UTC
The issue still persists with the latest julia-1.8.2. However, it can be resolved quite easily as pointed out by Jeffrey Lin (cf. comment 5): After re-merging sci-libs/suitesparseconfig with CFLAGS+=-lm, Julia builds without any issues. I have verified this on two of my machines.