Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firefox on riscv platform #5

Open
kush930 opened this issue May 31, 2023 · 0 comments
Open

firefox on riscv platform #5

kush930 opened this issue May 31, 2023 · 0 comments

Comments

@kush930
Copy link

kush930 commented May 31, 2023

Hi all,

I want to port firefox on riscv64, using glibc-2.32 and gcc-10.2.0 and python3.8 version on target board.

I followed the below procedure:-

1. $ curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs |](https://sh.rustup.rs%20%7C/) sh $ rustup default 1.63.0
2. $ git clone https://salsa.debian.org/mozilla-team/firefox.git -b debian/105.0-1 --depth=1

3. patch applied successfully:-
    $ patch -Np1 -i 0001-Bug-1786638-Return-early-if-we-can-t-fetch-an-intern.patch 
    $ patch -Np1 -i firefox-riscv64-hack.patch 
    $ patch -Np1 -i makotokato-riscv64-support-and-zenithal-backported.patch


4. Building firefox by running:- 
      $ ./mach vendor rust --ignore-modified
        
    During running   " ./mach vendor rust --ignore-modified" , i am facing issue-

error: no such subcommand: `vet`

	Did you mean `fmt`?
Error running mach:

    ['vendor', 'rust', '--ignore-modified']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file vendor| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

  File "/home/root/Debian/firefox/firefox/python/mozbuild/mozbuild/vendor/mach_commands.py", line 200, in vendor_rust
    ok = vendor_command.vendor(**kwargs)
  File "/home/root/Debian/firefox/firefox/python/mozbuild/mozbuild/vendor/vendor_rust.py", line 761, in vendor
    vet = json.loads(res.stdout)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

Can anyone suggest me where i am doing mistake.

T&R
Kush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant