Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936643 - dev-lang/rust-1.77.1 emerge fails on ARM MUSL
Summary: dev-lang/rust-1.77.1 emerge fails on ARM MUSL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Randy Barlow
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-07-25 21:32 UTC by Marius Dinu
Modified: 2024-08-16 10:15 UTC (History)
5 users (show)

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


Attachments
emerge --info (emerge-info.txt,7.10 KB, text/plain)
2024-07-25 21:32 UTC, Marius Dinu
Details
build log (rust-glibc.txt,9.24 KB, text/plain)
2024-07-25 21:32 UTC, Marius Dinu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Dinu 2024-07-25 21:32:20 UTC
emerge dev-lang/rust-1.77.1 on Gentoo ARM MUSL fails with this error:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/rust-1.77.1/work/rustc-1.77.1-src ...
Building bootstrap
running: /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo build --manifest-path /var/tmp/portage/dev-lang/rust-1.77.1/work/rustc-1.77.1-src/src/bootstrap/Cargo.toml --verbose --verbose --verbose --locked --frozen
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: __isnan: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: __register_atfork: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: gnu_get_libc_version: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: setcontext: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: __rawmemchr: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: __res_init: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: makecontext: symbol not found
Error relocating /var/tmp/portage/dev-lang/rust-1.77.1/work/rust-stage0/bin/cargo: getcontext: symbol not found

This is probably caused by rust-stage0 built for glibc instead of musl.

Thank you.

Reproducible: Always
Comment 1 Marius Dinu 2024-07-25 21:32:39 UTC
Created attachment 898319 [details]
emerge --info
Comment 2 Marius Dinu 2024-07-25 21:32:59 UTC
Created attachment 898320 [details]
build log
Comment 3 tt_1 2024-07-27 17:49:08 UTC
there is no upstream stage0 for your case, so nothing to compile with

only thing they release is a rust-std for your target, so you will have to rely on cross compiling things
Comment 4 matoro archtester 2024-07-27 18:19:07 UTC
I'm working on a commit that will make these profiles wd40.
Comment 5 Larry the Git Cow gentoo-dev 2024-08-16 10:15:36 UTC
The bug has been closed via the following commit(s):

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

commit 8e5890a3522c3746757c8ddb781ad921f6940195
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-08-16 10:11:11 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:38 +0000

    profiles: mark musl profiles w/o rust bins as wd40
    
    Closes: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Closes: https://github.com/gentoo/gentoo/pull/38042
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/riscv/rv32imac/parent                                  | 1 +
 profiles/arch/x86/i486/parent                                        | 1 +
 profiles/default/linux/arm/17.0/musl/parent                          | 1 +
 profiles/default/linux/arm/23.0/armv6j_hf/musl/parent                | 1 +
 profiles/default/linux/arm/23.0/armv7a_hf/musl/parent                | 1 +
 profiles/default/linux/arm/23.0/musl/parent                          | 1 +
 profiles/default/linux/arm/23.0/split-usr/armv6j_hf/musl/parent      | 1 +
 profiles/default/linux/arm/23.0/split-usr/armv7a_hf/musl/parent      | 1 +
 profiles/default/linux/arm/23.0/split-usr/musl/parent                | 1 +
 profiles/default/linux/m68k/17.0/musl/parent                         | 1 +
 profiles/default/linux/m68k/23.0/musl/parent                         | 1 +
 profiles/default/linux/m68k/23.0/split-usr/musl/parent               | 1 +
 profiles/default/linux/mips/17.0/mipsel/n64/musl/parent              | 1 +
 profiles/default/linux/mips/17.0/mipsel/o32/musl/parent              | 1 +
 profiles/default/linux/mips/17.0/n64/musl/parent                     | 1 +
 profiles/default/linux/mips/17.0/o32/musl/parent                     | 1 +
 profiles/default/linux/mips/23.0/mipsel/n64/musl/parent              | 1 +
 profiles/default/linux/mips/23.0/mipsel/o32/musl/parent              | 1 +
 profiles/default/linux/mips/23.0/mipsel/o32_sf/musl/parent           | 1 +
 profiles/default/linux/mips/23.0/n64/musl/parent                     | 1 +
 profiles/default/linux/mips/23.0/o32/musl/parent                     | 1 +
 profiles/default/linux/mips/23.0/o32_sf/musl/parent                  | 1 +
 profiles/default/linux/mips/23.0/split-usr/mipsel/n64/musl/parent    | 1 +
 profiles/default/linux/mips/23.0/split-usr/mipsel/o32/musl/parent    | 1 +
 profiles/default/linux/mips/23.0/split-usr/mipsel/o32_sf/musl/parent | 1 +
 profiles/default/linux/mips/23.0/split-usr/n64/musl/parent           | 1 +
 profiles/default/linux/mips/23.0/split-usr/o32/musl/parent           | 1 +
 profiles/default/linux/mips/23.0/split-usr/o32_sf/musl/parent        | 1 +
 profiles/default/linux/ppc/17.0/musl/parent                          | 1 +
 profiles/default/linux/ppc/23.0/musl/parent                          | 1 +
 profiles/default/linux/ppc/23.0/split-usr/musl/parent                | 1 +
 profiles/default/linux/ppc64/17.0/musl/parent                        | 1 +
 profiles/default/linux/ppc64le/17.0/musl/parent                      | 1 +
 profiles/default/linux/x86/17.0/musl/parent                          | 1 +
 profiles/default/linux/x86/23.0/i686/musl/parent                     | 1 +
 profiles/default/linux/x86/23.0/i686/split-usr/musl/parent           | 1 +
 36 files changed, 36 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit f2ea0d002f002e811b174009be3d9f878a927438
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-08-16 10:13:13 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:38 +0000

    profiles/ppc64{,le}/musl: force rust[system-bootstrap]
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/default/linux/ppc64/23.0/musl/package.use.force            | 6 ++++++
 profiles/default/linux/ppc64/23.0/split-usr/musl/package.use.force  | 6 ++++++
 profiles/default/linux/ppc64le/23.0/musl/package.use.force          | 6 ++++++
 .../default/linux/ppc64le/23.0/split-usr/musl/package.use.force     | 6 ++++++
 4 files changed, 24 insertions(+)

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

commit 1c54e659b47c23d62c71c392de96ecfbe886103d
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:54:22 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:38 +0000

    gnome-base/librsvg: stabilize 2.40.21 for ppc64
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 gnome-base/librsvg/librsvg-2.40.21.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 253923b1b844668e23d4afb4a2cc83ff0011d748
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:53:47 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:38 +0000

    gnome-base/librsvg: keyword 2.40.21 for ~ppc64
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 gnome-base/librsvg/librsvg-2.40.21.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 33b37fb91655da889b6b32bd54774e0a1128c8d8
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:52:46 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:37 +0000

    profiles/base: mask <gnome-base/librsvg-2.41
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/base/package.mask | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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

commit 46e4d1ac62100c0c4b7aeb74442dbe4e462085f1
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:50:40 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:37 +0000

    gnome-base/librsvg: keyword 2.58.2 for ~s390
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 gnome-base/librsvg/librsvg-2.58.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 2c9b0ff6f94997cb9d5eb13183a96c6ad288dd57
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:41:53 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:37 +0000

    profiles/features/wd40: unmask <gnome-base/librsvg-2.41
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/features/wd40/package.mask | 5 +++++
 1 file changed, 5 insertions(+)

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

commit e1aa8bab26d786b70c7652ab06031fc1cd2c4b70
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:35:23 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:36 +0000

    profiles/default/linux/riscv: force rust[system-bootstrap] on musl
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 .../default/linux/riscv/20.0/rv64gc/lp64/musl/package.use.force     | 6 ++++++
 .../default/linux/riscv/20.0/rv64gc/lp64d/musl/package.use.force    | 6 ++++++
 profiles/default/linux/riscv/23.0/rv64/lp64/musl/package.use.force  | 6 ++++++
 profiles/default/linux/riscv/23.0/rv64/lp64d/musl/package.use.force | 6 ++++++
 .../linux/riscv/23.0/rv64/split-usr/lp64/musl/package.use.force     | 6 ++++++
 .../linux/riscv/23.0/rv64/split-usr/lp64d/musl/package.use.force    | 6 ++++++
 6 files changed, 36 insertions(+)

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

commit 56be6de7cf1de7a6b6e595daf1446cf4e9b10de0
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:34:26 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:36 +0000

    profiles/arch/riscv/rv32imac: inherit a shared parent
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/riscv/rv32imac/eapi          | 1 +
 profiles/arch/riscv/rv32imac/ilp32/parent  | 1 +
 profiles/arch/riscv/rv32imac/ilp32d/parent | 1 +
 3 files changed, 3 insertions(+)

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

commit abeb99764c2e00ee05fef35137b7b1e82af91b46
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-08-10 06:33:30 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 10:14:36 +0000

    profiles/features/wd40: add additional masks
    
    Bug: https://bugs.gentoo.org/936643
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/features/wd40/package.mask     | 152 ++++++++++++++++++++++++++++++++
 profiles/features/wd40/package.use.mask |  35 ++++++++
 profiles/features/wd40/use.mask         |   6 +-
 3 files changed, 192 insertions(+), 1 deletion(-)