Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898294 - sci-libs/taucs-2.2-r1 fails to compile (MUSL-CLANG-SYSTEM): taucs_config.c:244:5: error: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: sci-libs/taucs-2.2-r1 fails to compile (MUSL-CLANG-SYSTEM): taucs_config.c:24...
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: ~arch only
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-28 09:49 UTC by Agostino Sarubbo
Modified: 2025-02-24 21:27 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,47.80 KB, text/plain)
2023-02-28 09:49 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 2023-02-28 09:49:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-28 09:49:54 UTC
Created attachment 855118 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-28 09:49:55 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


./configure: line 56: configurator/configurator: No such file or directory
./configure: line 66: configurator/configurator: No such file or directory
rm: cannot remove 'configurator/configurator': No such file or directory
configurator/taucs_config.c:244:5: error: call to
Comment 3 NHO 2025-02-21 19:00:18 UTC
upstreaming in https://github.com/sivantoledo/taucs/pull/2
Comment 4 Larry the Git Cow gentoo-dev 2025-02-24 21:27:59 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(+)