Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869488 - media-gfx/prusaslicer-2.7.1 fails to compile (MUSL): Serial.cpp:48:18: fatal error: unistd.h: No such file or directory
Summary: media-gfx/prusaslicer-2.7.1 fails to compile (MUSL): Serial.cpp:48:18: fatal ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: 3D Printing Team
Depends on:
Reported: 2022-09-10 11:57 UTC by Agostino Sarubbo
Modified: 2024-02-08 13:21 UTC (History)
0 users

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

build.log.xz (build.log.xz,37.33 KB, application/x-xz)
2022-09-10 11:57 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-09-10 11:57:54 UTC

Issue: media-gfx/prusaslicer-2.5.0_alpha2-r1 fails to compile (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-10 11:57:56 UTC
Created attachment 804454 [details]

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-09-10 11:57:57 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

-- Could NOT find CURL (missing: CURL_DIR)
/var/tmp/portage/media-gfx/prusaslicer-2.5.0_alpha2-r1/work/PrusaSlicer-version_2.5.0-alpha2/src/slic3r/Utils/Serial.cpp:48:18: fatal error: sys/unistd.h: No such file or directory
FAILED: src/slic3r/CMakeFiles/libslic3r_gui.dir/Utils/Serial.cpp.o 
/var/tmp/portage/media-gfx/prusaslicer-2.5.0_alpha2-r1/work/PrusaSlicer-version_2.5.0-alpha2/src/slic3r/Utils/Serial.cpp:48:18: fatal error: sys/unistd.h: No such file or directory
Comment 3 Piotr Karbowski (RETIRED) gentoo-dev 2023-01-28 14:45:14 UTC
Is it still a thing on latest 2.5.0-r1? I see that musl does delivery this header in stage3. Is it reproducible?
Comment 4 Max 2023-07-08 16:54:21 UTC
Confirmed in v2.5.2

/var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.2/src/libslic3r/PNGReadWrite.hpp:13:25: error: ‘std::uint8_t’ has not been declared
Comment 5 Max 2023-07-08 16:54:40 UTC
(In reply to Max from comment #4)
> Confirmed in v2.5.2
> /var/tmp/portage/media-gfx/prusaslicer-2.5.2-r1/work/PrusaSlicer-version_2.5.
> 2/src/libslic3r/PNGReadWrite.hpp:13:25: error: ‘std::uint8_t’ has not been
> declared

How can I help to fix this?
Comment 6 Piotr Karbowski (RETIRED) gentoo-dev 2023-07-08 17:30:39 UTC
The PrusaSlicer depends on opencascade that does not build on musl and therefore is masked on all of those profiles, I do not think anyone will spend effort on it anytime soon given how difficult the entire codebase that dates back to slic3r project is.
Comment 7 Agostino Sarubbo gentoo-dev 2024-02-08 13:21:30 UTC
tinderbox_musl has reproduced this issue with version 2.7.1 - Updating summary.