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

[Bug] Weird problem about corrosion #355

Closed
coolit opened this issue Feb 19, 2022 · 6 comments
Closed

[Bug] Weird problem about corrosion #355

coolit opened this issue Feb 19, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@coolit
Copy link

coolit commented Feb 19, 2022

Describe the bug

In the rust.cmake, I have enabled this:
find_package(Corrosion REQUIRED)
And have install corrosion as per here:
https://github.com/corrosion-rs/corrosion#installation
And put the following in the system PATH: (as I'm not sure which one should be used, so I use all)
C:\Program Files (x86)\Corrosion\Corrosion\lib
C:\Program Files (x86)\Corrosion\Corrosion
C:\Program Files (x86)\Corrosion

But when I ran exactly the same command such as "flutter build windows", sometimes the problem occurred, sometimes didn't.
According to the log, it was trying to access 'https://github.com/AndrewGaspar/corrosion.git/', regardless of that corrosion is already installed.
Do you have an idea how to solve this problem?
Thanks.

Codegen logs with RUST_LOG=debug env variable

Performing update step for 'corrosion-populate'
  fatal: unable to access 'https://github.com/AndrewGaspar/corrosion.git/': OpenSSL SSL_read: Connection was aborted, errno 10053
  CMake Error at D:/genie/build/windows/_deps/corrosion-subbuild/corrosion-populate-prefix/tmp/corrosion-populate-gitupdate.cmake:97 (execute_process):
    execute_process failed command indexes:

      1: "Child return code: 128"
......
@coolit coolit added the bug Something isn't working label Feb 19, 2022
@welcome
Copy link

welcome bot commented Feb 19, 2022

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy
Copy link
Owner

fzyzcjy commented Feb 19, 2022

possibly related: #318 (comment) #354

@coolit
Copy link
Author

coolit commented Feb 19, 2022

Sorry to not mentnion. In my case, it was windows not linux.

@Desdaemon
Copy link
Contributor

@coolit Have you tried removing the FetchContent lines from your rust.cmake? When you already have the package you should only need the find_package line.

@coolit
Copy link
Author

coolit commented Feb 20, 2022

@Desdaemon Yes, after removing thm, seems the problem is gone now. Thanks so much.

@coolit coolit closed this as completed Feb 20, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants