Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860018 - sci-mathematics/flint-2.9.0 fails to compile (lto): mul_blas.c:24:10: fatal error: cblas.h: No such file or directory
Summary: sci-mathematics/flint-2.9.0 fails to compile (lto): mul_blas.c:24:10: fatal e...
Status: RESOLVED DUPLICATE of bug 787032
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-22 09:13 UTC by Agostino Sarubbo
Modified: 2024-04-05 02:45 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,602.67 KB, text/plain)
2022-07-22 09:13 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-22 09:13:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-mathematics/flint-2.9.0 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-22 09:13:34 UTC
Created attachment 793109 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-22 09:13:36 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/var/tmp/portage/sci-mathematics/flint-2.9.0/work/flint2-2.9.0/fmpz_mat/mul_blas.c:24:10: fatal error: cblas.h: No such file or directory
/var/tmp/portage/sci-mathematics/flint-2.9.0/work/flint2-2.9.0/fmpz_mat/mul_blas.c:24:10: fatal error: cblas.h: No such file or directory
Comment 3 François Bissey 2022-07-22 11:46:03 UTC
You don't appear to have any (c)blas/lapack library installed prior to building flint. flint depends on virtual/cblas, virtual/cblas in turn has runtime dependency to blas/lapack libraries. Could the issue be caused by the fact the dependencies in the virtual are only runtime when we need the packages at build time?
Comment 4 Joonas Niilola gentoo-dev 2022-07-28 12:25:10 UTC
Most likely yes. It's looking for a header file.
Comment 5 François Bissey 2022-07-28 19:59:48 UTC
(In reply to Joonas Niilola from comment #4)
> Most likely yes. It's looking for a header file.

That's why I started to look for blas/lapack packages in the logs. With no luck.
Comment 6 Michael Orlitzky gentoo-dev 2022-08-06 15:38:41 UTC
(In reply to François Bissey from comment #5)
> (In reply to Joonas Niilola from comment #4)
> > Most likely yes. It's looking for a header file.
> 
> That's why I started to look for blas/lapack packages in the logs. With no
> luck.

He has sci-libs/openblas installed, but not the sci-libs/lapack that provides /usr/include/cblas.h. Which I don't understand, because flint-2.9.0 has virtual/cblas in DEPEND, and virtual/cblas in turn has sci-libs/lapack in DEPEND.
Comment 7 Michael Orlitzky gentoo-dev 2022-08-06 15:50:43 UTC
Well, virtual/cblas isn't even installed. It's in DEPEND for flint. Something fishy going on.
Comment 8 Joonas Niilola gentoo-dev 2022-08-14 07:47:55 UTC
I wonder if it's another case of https://bugs.gentoo.org/787032 starting to sound like it.
Comment 9 Michael Orlitzky gentoo-dev 2022-08-14 12:20:26 UTC
(In reply to Joonas Niilola from comment #8)
> I wonder if it's another case of https://bugs.gentoo.org/787032 starting to
> sound like it.

Good catch. DEPEND is not satisfied here when the build starts, so I think you're right.

*** This bug has been marked as a duplicate of bug 787032 ***