Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870088 - mail-client/thunderbird-102.2.2-r1: failed to compile with dev-lang/rust-1.63.0
Summary: mail-client/thunderbird-102.2.2-r1: failed to compile with dev-lang/rust-1.63.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-09-14 11:26 UTC by 12101111
Modified: 2022-09-23 03:52 UTC (History)
8 users (show)

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


Attachments
build.log (build.log.xz,142.65 KB, application/x-xz)
2022-09-14 11:47 UTC, 12101111
Details
emerge --info (info.log,9.15 KB, text/x-log)
2022-09-14 11:48 UTC, 12101111
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 12101111 2022-09-14 11:26:53 UTC
2:31.44 error: expected one of `!` or `::`, found keyword `mod`
2:31.45    --> /tmp/portage/mail-client/thunderbird-102.2.2-r1/work/thunderbird-102.2.2/third_party/rust/packed_simd_2/src/lib.rs:347:7
2:31.45     |
2:31.45 347 | crate mod llvm {
2:31.45     |       ^^^ expected one of `!` or `::`
2:31.46 error: could not compile `packed_simd_2` due to previous error

Patch: https://github.com/rust-lang/packed_simd/commit/0d5887bec983381dd1bfce922ae25384dd4190fb

Reproducible: Always
Comment 1 12101111 2022-09-14 11:47:45 UTC
Created attachment 805090 [details]
build.log
Comment 2 12101111 2022-09-14 11:48:49 UTC
Created attachment 805093 [details]
emerge --info
Comment 3 Christian Bricart 2022-09-14 13:25:18 UTC
I am able to confirm build issue of Thunderbird using Rust =1.63.0.

However, I am using =dev-lang/rust-bin-1.63.0 … so an epatch to the sources of Rust won't fix BDEPS in all cases in the wild.

So I rather would limit thunderbird's BDEPS to <virtual/rust-1.63.0 until the upstream fix has been merged into a forthcoming version of  Rust?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-14 15:17:06 UTC
(In reply to Christian Bricart from comment #3)
> I am able to confirm build issue of Thunderbird using Rust =1.63.0.
> 
> However, I am using =dev-lang/rust-bin-1.63.0 … so an epatch to the sources
> of Rust won't fix BDEPS in all cases in the wild.
> 
> So I rather would limit thunderbird's BDEPS to <virtual/rust-1.63.0 until
> the upstream fix has been merged into a forthcoming version of  Rust?

The patch is for Thunderbird, not Firefox.
Comment 5 Christian Bricart 2022-09-14 17:02:40 UTC
Ah sorry for the noise, got confused because the patch originates from rust repo - now I spot it applies to thunderbird third party dir
Comment 6 Joonas Niilola gentoo-dev 2022-09-14 17:11:43 UTC
Sigh, and here I was hoping Gentoo wouldn't get rust bumped before 102.3.0 landed. Upstream has indeed fixed the issue for rust-1.63.0 for the next releases.
Comment 7 Geoff Leach 2022-09-15 03:02:28 UTC
Confirming. 

Seems to me the bug is fixed in packed_simd_2-0.38, but thunderbird-102 is using packed_simd_2-0.36 which has the older rust code 

crate mod llvm {
    crate use crate::codegen::llvm::*;
}

instead of the newer 

pub(crate) mod llvm {
    pub(crate) use crate::codegen::llvm::*;
}

That's with rust-1.63. 

Will add a patch if build finishes ...
Comment 8 Larry the Git Cow gentoo-dev 2022-09-15 06:44:33 UTC
The bug has been referenced in the following commit(s):

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

commit 8e6045d7ac594eace8fea77c0b2f62987b2fb7a2
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-09-15 06:09:28 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-09-15 06:09:28 +0000

    mail-client/thunderbird: restrict rust dep <1.63 on 102
    
     - new versions which supports rust-1.63 will be out in few days.
    
    Bug: https://bugs.gentoo.org/870088
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 mail-client/thunderbird/thunderbird-102.2.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 9397d07c5329a062eb63883d14018e143d6f6ba2
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-09-15 06:08:18 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-09-15 06:08:18 +0000

    www-client/firefox: restrict rust to <1.63 on 102
    
     - new versions which supports 1.63 will be out in few days.
    
    Bug: https://bugs.gentoo.org/870088
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/firefox-102.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 9 Geoff Leach 2022-09-15 13:31:12 UTC
FWIW I think firefox-102 built with rust-1.63, as it has packed_simd_2-0.38, whereas thunderbird-102 has packed_simd_2-0.38. That's looking at the mozilla repositories for both. Also FF built for me.
Comment 10 Geoff Leach 2022-09-22 22:52:30 UTC
thunderbird-102.3.0 built for me, rust-1.63.0-r1
Comment 11 12101111 2022-09-23 03:52:04 UTC
Fixed in mail-client/thunderbird-102.3.0