pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: a possible incompatibility between lang/mozjs78 and lang/rust



Thank you for the information.
I'll check /etc/mk.conf and try again.

Do you have any particular settings for compiler or something else?

Daisuke

On Fri, 30 Apr 2021 at 17:37, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> The OP suggests mozjs78 can't be built with rust 1.50.0. I have:
>
> ➜  xci rustc --version
> rustc 1.50.0
> ➜  xci ls -l =rustc
> -rwxr-xr-x 1 root wheel 13800 Apr 23 10:09 /usr/pkg/bin/rustc
> ➜  xci ls -l /usr/pkgsrc/packages/All/mozjs78*
> -rw-r--r-- 1 root pkgsrc 10632686 Apr 26 01:35
> /usr/pkgsrc/packages/All/mozjs78-78.4.0.tgz
> -rw-r--r-- 1 root pkgsrc 10140527 Apr 27 10:31
> /usr/pkgsrc/packages/All/mozjs78-78.4.0nb1.tgz
>
> So my two last mozjs78 versions have been built using rust 1.50.0
>
>
> On Fri, 30 Apr 2021 at 10:19, voidpin <voidpin%protonmail.com@localhost> wrote:
> >
> >
> >
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > On Friday 30 April 2021 kl. 10:10, Kinoshita Daisuke <kinoshita%astro.ncu.edu.tw@localhost> wrote:
> >
> > > You mean this? Daisuke
> > >
> > > -----------------------
> > >
> > > gmake[3]: Leaving directory
> > > '/source/netbsd/pkgsrc/2021Q1/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build/js/src'
> > > error: failed to parse manifest at
> > > `/source/netbsd/pkgsrc/2021Q1/pkgsrc/lang/mozjs78/work/firefox-78.4.0/Cargo.toml`
> > >
> > > Caused by:
> > > dependency (nix) specification is ambiguous. Only one of `branch`,
> > > `tag` or `rev` is allowed.
> > > gmake[3]: *** [/source/netbsd/pkgsrc/2021Q1/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/makefiles/rust.mk:299:
> > > force-cargo-library-build] Error 101
> > > gmake[3]: Leaving directory
> > > '/source/netbsd/pkgsrc/2021Q1/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build/js/src/rust'
> > > gmake[2]: *** [/source/netbsd/pkgsrc/2021Q1/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/recurse.mk:74:
> > > js/src/rust/target] Error 2
> > >
> > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > >
> > > --
> > >
> > > gmake[3]: Leaving directory
> > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build/mfbt/tests'
> > > Updating git repository `https://github.com/shravanrn/nix/`
> > > error: failed to resolve patches for
> > > `https://github.com/rust-lang/crates.io-index`
> > >
> > > Caused by:
> > > failed to load source for dependency `nix`
> > >
> > > Caused by:
> > > Unable to update
> > > https://github.com/shravanrn/nix/?rev=4af6c367603869a30fddb5ffb0aba2b9477ba92e
> >
> > Interesting that it's trying to pull from an yanked crate, https://github.com/shravanrn/nix
> >
> > instead of current upstream, https://github.com/nix-rust/nix
> >
> > Wonder what's the reason for this?
> >
> > >
> > > Caused by:
> > > failed to fetch into:
> > > /source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/.home/.cargo/git/db/nix-bcf9654e7f420cf5
> > >
> > > Caused by:
> > > network failure seems to have happened
> > > if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
> > > https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
> > >
> > > Caused by:
> > > the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)
> > > gmake[3]: *** [/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/makefiles/rust.mk:299:
> > > force-cargo-library-build] Error 101
> > > gmake[3]: Leaving directory
> > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build/js/src/rust'
> > > gmake[2]: *** [/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/recurse.mk:74:
> > > js/src/rust/target] Error 2
> > > gmake[2]: Leaving directory
> > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build'
> > > gmake[1]: *** [/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/recurse.mk:34:
> > > compile] Error 2
> > > gmake[1]: Leaving directory
> > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build'
> > > gmake: *** [/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/rules.mk:390:
> > > all] Error 2
> > > *** Error code 2
> > >
> > > Stop.
> > > make[1]: stopped in /source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78
> > > *** Error code 1
> > >
> > > Stop.
> > > make: stopped in /usr/pkgsrc/lang/mozjs78
> > >
> > > -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > >
> > > On Fri, 30 Apr 2021 at 15:49, Patrick Welcheprlw1%cam.ac.uk@localhost wrote:
> > >
> > > > On Fri, Apr 30, 2021 at 03:09:25PM +0800, Kinoshita Daisuke wrote:
> > > >
> > > > > Hello everyone,
> > > > > I am struggling with lang/mozjs78 for a few days.
> > > > > As a dependency, lang/mozjs78 is required, and I tried to compile it
> > > > > using pkgsrc-current.
> > > > > But compilation of lang/mozjs78 fails with pkgsrc-current.
> > > > > I have checked dependencies of lang/mozjs78, and have tried some
> > > > > combinations of versions of packages.
> > > > > It seems that lang/mozjs78 is successfully compiled when using
> > > > > lang/rust version 1.49.
> > > > > And, compilation of lang/mozjs78 fails when using lang/rust version 1.50.
> > > > > I haven't used rust, and it is difficult for me to go further.
> > > > > And, I just want to report about it.
> > > > > Here is the error message I saw when rust 1.50 is used for compilation.
> > > > >
> > > > > gmake[3]: Leaving directory
> > > > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build/js/src'
> > > > > gmake[2]: Leaving directory
> > > > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build'
> > > > > gmake[1]: *** [/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/recurse.mk:34:
> > > > > compile] Error 2
> > > > > gmake[1]: Leaving directory
> > > > > '/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/js/src/build'
> > > > > gmake: *** [/source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78/work/firefox-78.4.0/config/rules.mk:390:
> > > > > all] Error 2
> > > > > *** Error code 2
> > > > > Stop.
> > > > > make[1]: stopped in /source/netbsd/pkgsrc/current/pkgsrc/lang/mozjs78
> > > > > *** Error code 1
> > > > > Stop.
> > > > > make: stopped in /usr/pkgsrc/lang/mozjs78
> > > >
> > > > I think further up there is something about trying to use git to grab "nix"
> > > > P
> >
> >
>
>
> --
> ----


Home | Main Index | Thread Index | Old Index