Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886467 - sci-libs/taucs-2.2-r1 fails to compile (CLANG-STRICTER-SYSTEM): taucs_blas_nounderscore_test.c:(.text+0xa8): undefined reference to dgemm
Summary: sci-libs/taucs-2.2-r1 fails to compile (CLANG-STRICTER-SYSTEM): taucs_blas_no...
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: PullRequest
Depends on:
Blocks:
 
Reported: 2022-12-17 08:55 UTC by Agostino Sarubbo
Modified: 2025-02-24 21:27 UTC (History)
0 users

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


Attachments
build.log (build.log,58.07 KB, text/plain)
2022-12-17 08:55 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-12-17 08:55:41 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/taucs-2.2-r1 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-17 08:55:43 UTC
Created attachment 843196 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-17 08:55:44 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find obj/linux_shared/taucs_cilk_test.o: No such file or directory
f951: Error: ‘-Werror=incompatible-function-pointer-types’: no option ‘-Wincompatible-function-pointer-types’; did you mean ‘-Wincompatible-pointer-types’?
make: obj/linux_shared/taucs_blas_nounderscore_test: No such file or directory
make: obj/linux_shared/taucs_cilk_test: No such file or directory
taucs_blas_nounderscore_test.c:(.text+0xa8): undefined reference to `dgemm'
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2025-02-24 21:27:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc8a349543ff2f0529cb43a31460c0636f7efc9c

commit cc8a349543ff2f0529cb43a31460c0636f7efc9c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-21 18:59:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-24 21:25:02 +0000

    sci-libs/taucs: add 2.2.1, port to C23, fix musl build.
    
    Fixes problem with breaking handwritten makefile and config generator
    that uses mkdir to test for OS (Windows/Linux)
    Also fixes other build problems with GCC-15
    Correcting ebuild to work on musl system was unpleasant and it looks
    ugly. Such is life with horrible, hand-written makefile generator
    
    Closes: https://bugs.gentoo.org/886467
    Closes: https://bugs.gentoo.org/898294
    Closes: https://bugs.gentoo.org/832812
    Closes: https://bugs.gentoo.org/898296
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40691
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/taucs/Manifest                            |   1 +
 .../taucs/files/taucs-2.2-missing-include.patch    |  36 +++++++
 sci-libs/taucs/files/taucs-2.2.1-C23.patch         | 120 +++++++++++++++++++++
 .../taucs-2.2.1-allocate-memory-in-test.patch      |  24 +++++
 sci-libs/taucs/metadata.xml                        |   3 +
 sci-libs/taucs/taucs-2.2.1.ebuild                  |  84 +++++++++++++++
 6 files changed, 268 insertions(+)