Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732190 - www-client/firefox fails to compile when AS is specified: /usr/bin/x86_64-pc-linux-gnu-as: invalid option -- 'N'
Summary: www-client/firefox fails to compile when AS is specified: /usr/bin/x86_64-pc-...
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: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-11 13:42 UTC by Agostino Sarubbo
Modified: 2022-11-10 07:54 UTC (History)
2 users (show)

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


Attachments
build.log.bz2 (build.log.bz2,264.14 KB, application/x-bzip-compressed-tar)
2020-07-11 13:43 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,245 bytes, application/x-bzip-compressed-tar)
2020-07-11 13:43 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 2020-07-11 13:42:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-client/firefox fails to compile.
Discovered on: amd64  (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-11 13:43:03 UTC
Created attachment 648876 [details]
build.log.bz2

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-11 13:43:05 UTC
Created attachment 648878 [details]
other.tar.bz2

other logs
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-07-11 15:44:15 UTC
I am failing to spot any error message. Make sure you didn't run out of memory.
Comment 4 Stephan Hartmann (RETIRED) gentoo-dev 2020-07-11 15:51:15 UTC
(In reply to Thomas Deutschmann from comment #3)
> I am failing to spot any error message. Make sure you didn't run out of
> memory.

line 17142 of 30122 ;)

Probably AS was set to x86_64-pc-linux-gnu-as, but build system expects compiler to call 'as'.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2020-07-20 13:53:01 UTC
I wonder how to reproduce this. I am also running with USE=-native-symlinks and don't run into this problem...
Comment 6 Agostino Sarubbo gentoo-dev 2020-07-20 14:02:16 UTC
(In reply to Thomas Deutschmann from comment #5)
> I wonder how to reproduce this. I am also running with USE=-native-symlinks
> and don't run into this problem...

did you try to set AS to x86_64-pc-linux-gnu-as ?
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2020-07-20 17:27:50 UTC
When I pass AS, I can reproduce as reported.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2020-07-28 21:15:59 UTC
Until upstream fixes build system to use more standard name of variable (AS -> CCAS), I suggest that ebuilds contain:

local -x AS="$(tc-getCC) -c"

If build system also uses user-specified ASFLAGS in non-standard way, then:

local -x ASFLAGS="${CFLAGS}"
Comment 9 James Beddek 2021-06-07 10:39:14 UTC
Ran into this when using AS=llvm-as, where it fails with the following

...
llvm-as: Unknown command line argument '-DNDEBUG=1'.  Try: '/usr/lib/llvm/12/bin/llvm-as --help'
llvm-as: Did you mean '--f=1'?
llvm-as: Unknown command line argument '-DTRIMMED=1'.  Try: '/usr/lib/llvm/12/bin/llvm-as --help'
llvm-as: Did you mean '--f=1'?
llvm-as: Unknown command line argument '-DMOZ_HAS_MOZGLUE'.  Try: '/usr/lib/llvm/12/bin/llvm-as --help'
llvm-as: Did you mean '-f'?
...
Comment 10 12101111 2021-06-19 14:52:08 UTC
(In reply to telans from comment #9)
> Ran into this when using AS=llvm-as, where it fails with the following
> 
> ...
> llvm-as: Unknown command line argument '-DNDEBUG=1'.  Try:
> '/usr/lib/llvm/12/bin/llvm-as --help'
> llvm-as: Did you mean '--f=1'?
> llvm-as: Unknown command line argument '-DTRIMMED=1'.  Try:
> '/usr/lib/llvm/12/bin/llvm-as --help'
> llvm-as: Did you mean '--f=1'?
> llvm-as: Unknown command line argument '-DMOZ_HAS_MOZGLUE'.  Try:
> '/usr/lib/llvm/12/bin/llvm-as --help'
> llvm-as: Did you mean '-f'?
> ...


llvm-as is not a normal assembler, it can only compile llvm text IR to llvm bytecode

llvm-as --help
OVERVIEW: llvm .ll -> .bc assembler

USAGE: llvm-as [options] <input .llvm file>
...
Comment 11 Larry the Git Cow gentoo-dev 2022-11-10 07:54:55 UTC
The bug has been closed via the following commit(s):

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

commit 82b69b4c3b20285be228a8eb1ad9487aff73986a
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-11-10 07:51:42 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-11-10 07:54:52 +0000

    www-client/firefox: cover more scenarios with AS="$(tc-getCC) -c"
    
    Closes: https://bugs.gentoo.org/732190
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/firefox-102.4.0.ebuild | 2 +-
 www-client/firefox/firefox-106.0.5.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)