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

build failure #2

Open
dragonsKnight5 opened this issue Jun 16, 2021 · 4 comments
Open

build failure #2

dragonsKnight5 opened this issue Jun 16, 2021 · 4 comments

Comments

@dragonsKnight5
Copy link

can I get an exact list of dependencies?
I keep getting a build failure when attempting to follow the provided instructions

I've attached the build log as well, hopefully someone can point out what my error in this process is
build log

@wellingtonsa
Copy link

Hey @dragonsKnight5 , how's it going?
I have had the same issue you mentioned when I have tried to executemvn clean install, and taking a look deeplying inside the pom.xml file, I realized that had one tag missing called pluginManagment.

So, I just added this tag there and it worked perfectly to me. I also created a PR which contains that fix: #3

I hope it works for you too.

@gordonchiang
Copy link
Contributor

I experienced this problem as well. I tried the fix in #3, but wrapping plugins tag with a pluginManagement tag skips compiling quiche4j-jni and my output jar was empty.

Instead, the issue seems to be related to -Z unstable-options causing the execution of cargo to fail:

<arg line="build --lib --${native.buildMode} --color always --target-dir ${native.targetDir} --out-dir ${nativeLibOnlyDir} -Z unstable-options" />

-Z unstable-options only works on the nightly toolchain of cargo, so switching to the nightly toolchain fixed my build. You can use rustup override set nightly to set the base directory to use the nightly toolchain by default, then run mvn clean install, and it should build successfully.

@Uttkarsh09
Copy link

Changing the rustup toolchain to nightly did fix the problem!

@u-nation
Copy link

Here's how to change the rustup toolchain to nightly.

$ rustup install nightly
$ rustup default nightly

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

5 participants