Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 746506 - mail-client/thunderbird-78.3.1 fails to build with gcc -g: failed to run custom build command for swgl v0.1.0
Summary: mail-client/thunderbird-78.3.1 fails to build with gcc -g: failed to run cust...
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:
Depends on:
Blocks:
 
Reported: 2020-10-04 09:43 UTC by Alexey
Modified: 2020-10-04 14:36 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.bz2,333.48 KB, application/x-bzip2)
2020-10-04 09:43 UTC, Alexey
Details
emerge --info (file_746506.txt,19.94 KB, text/plain)
2020-10-04 09:44 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2020-10-04 09:43:32 UTC
Created attachment 663739 [details]
build.log

6:03.88 [swgl 0.1.0] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseError { info: "0: at line 921:\n#define ACTUAL_VECS_PER_BRUSH VECS_PER_SPECIFIC_BRUSH\n^\nexpected \'}\', found #\n\n" }', gfx/wr/glsl-to-cxx/src/lib.rs:107:13
 6:03.88 [swgl 0.1.0] stack backtrace:                                                                                                   
 6:04.02 [swgl 0.1.0]    0:     0x55fb9e09e2a3 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h54e771e19be9d9fd                                 
 6:04.03 [swgl 0.1.0]    1:     0x55fb9e0c545d - core::fmt::write::he8cb6d64ed166147                                                                                                                                                                                              
 6:04.03 [swgl 0.1.0]    2:     0x55fb9e08f997 - std::io::Write::write_fmt::hb74bb76048429806                                                                                                                                                                                     
 6:04.03 [swgl 0.1.0]    3:     0x55fb9e0954f0 - std::panicking::default_hook::{{closure}}::h13870ff2e5ec04c6                                                                                                                                                                     
 6:04.03 [swgl 0.1.0]    4:     0x55fb9e095204 - std::panicking::default_hook::h6028010343feb93d                                                                                                                                                                                  
 6:04.03 [swgl 0.1.0]    5:     0x55fb9e095b17 - std::panicking::rust_panic_with_hook::hd7dc8cdb98cef781                                                                                                                                                                          
 6:04.03 [swgl 0.1.0]    6:     0x55fb9e09571b - rust_begin_unwind                                                                                                                                                                                                                
 6:04.03 [swgl 0.1.0]    7:     0x55fb9e0c4371 - core::panicking::panic_fmt::h61e03e91a1a8868a
 6:04.03 [swgl 0.1.0]    8:     0x55fb9e0c4403 - core::result::unwrap_failed::hfb81d2c162de1956                                                                                                                                                                                   
 6:04.03 [swgl 0.1.0]    9:     0x55fb9dfc849b - glsl_to_cxx::parse_shader::hff844fed0d73ec2b                                                                                                                                                                                     
 6:04.03 [swgl 0.1.0]   10:     0x55fb9dfc7aaf - glsl_to_cxx::translate::h317df14da74e5c51                                                                                                                                                                                        
 6:04.03 [swgl 0.1.0]   11:     0x55fb9dfbb13d - build_script_build::main::h04aa7ba4dc12b6b3                                                                                                                                                                                      
 6:04.03 [swgl 0.1.0]   12:     0x55fb9dfb7923 - std::rt::lang_start::{{closure}}::hdc6e274b274aa1a5                                                                                                                                                                              
 6:04.03 [swgl 0.1.0]   13:     0x55fb9e095e07 - std::rt::lang_start_internal::h7bac1615f1260c82                                                                                                                                                                                  
 6:04.03 [swgl 0.1.0]   14:     0x55fb9dfbce72 - main                                                                                                                                                                                                                             
 6:04.03 [swgl 0.1.0]   15:     0x7f170f9fbd0b - __libc_start_main                                                                                                                                                                                                                
 6:04.03 [swgl 0.1.0]                                at ../csu/libc-start.c:308                                                                                                                                                                                                   
 6:04.03 [swgl 0.1.0]   16:     0x55fb9dfb61ca - _start                                                                                  
 6:04.03 [swgl 0.1.0]   17:                0x0 - <unknown>                                                                               
 6:04.03 error: failed to run custom build command for `swgl v0.1.0 (/mnt/portagetmp/portage/mail-client/thunderbird-78.3.1/work/thunderbird-78.3.1/gfx/wr/swgl)`
 6:04.03 Caused by:                                                                                                                                                                                                                                                               
 6:04.03   process didn't exit successfully: `/mnt/portagetmp/portage/mail-client/thunderbird-78.3.1/work/thunderbird_build/release/build/swgl-f6988cf5553e21cf/build-script-build` (exit code: 101)
Comment 1 Alexey 2020-10-04 09:44:35 UTC
Created attachment 663742 [details]
emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2020-10-04 09:50:02 UTC
> C(XX)FLAGS="-O2 -pipe -march=znver2 -ggdb3"
I guess this bug affects thunderbird too.

See bug #746131 and bug #721126

Haven't tested with thunderbird but I imagine the workarounds will work the same, either remove -g* from your C(XX)FLAGS or do USE=clang.
Comment 3 Alexey 2020-10-04 09:53:16 UTC
Yeah, I already added bug #721126 to See Also :) It was me who opened that bug in the first place.

Oh, I'd prefer to switch to clang rather than disabling -g. I'll try and report.
Comment 4 Ionen Wolkens gentoo-dev 2020-10-04 09:56:33 UTC
(In reply to Alexey from comment #3)
> Yeah, I already added bug #721126 to See Also :) It was me who opened that
> bug in the first place.
> 
> Oh, I'd prefer to switch to clang rather than disabling -g. I'll try and
> report.
Ah missed that, sorry. Generally there's just far less trouble with clang on these given it's what upstream tests the most.
Comment 5 Alexey 2020-10-04 11:08:47 UTC
Yep, thanks, both FF and TB work with clang with -g
Comment 6 Larry the Git Cow gentoo-dev 2020-10-04 14:36:30 UTC
The bug has been closed via the following commit(s):

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

commit c933d829abca11b8909587fa14ce82e24dd175d5
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-10-04 14:35:59 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-10-04 14:36:24 +0000

    mail-client/thunderbird: don't pass -g* value from FLAGS when not using CLANG
    
    Closes: https://bugs.gentoo.org/721126
    Closes: https://bugs.gentoo.org/746506
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 mail-client/thunderbird/thunderbird-78.3.1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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

commit d16d2717ec6e75c500dd429abf39e93bc1d58130
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-10-04 14:33:56 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-10-04 14:36:23 +0000

    www-client/firefox: don't pass -g* value from FLAGS when not using CLANG
    
    Closes: https://bugs.gentoo.org/721126
    Closes: https://bugs.gentoo.org/746506
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/firefox-78.3.1.ebuild | 6 +++++-
 www-client/firefox/firefox-81.0.1.ebuild | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)