Skip to content

cargo update breaks build #379

Closed
Closed

Description

@haerdib

proc-macro2 has been updated (see PR dtolnay/proc-macro2#296) which breaks our build.
After a make update a cargo update -p proc-macro2 --precise 1.0.28 is solving the immediate problem (needs to be done twice: once in the worker part and once in the enclave part)

A fast solution would be to include the cargo update --precise update into our make update but it's not the cleanest solution. This should be looked into a little bit deeper.

Activity

  1. changed the title [-]cargo update breaks building[/-] [+]cargo update breaks build[/+] on Aug 31, 2021
  2. clangenb commented on Aug 31, 2021

    @clangenb
    Contributor

    Yes, this is because our rust-toolchain is not recent enough for this. We could try updating the toolchain a little bit, but this might also break the build if the std-api deviates from sgx-tstd's as a consequence.

    It hurts, but in our environment we probably neet to accept that we can't always do a plain cargo update.

  3. haerdib commented on Aug 31, 2021

    @haerdib
    ContributorAuthor

    We should then atleast keep the make update file up to date - because answering questions how to fix broken build takes longer than updating the make file. Is that acceptable?
    (But I will try update rust toolchain and see if that works - will update on that one as soon as possible)

  4. clangenb commented on Aug 31, 2021

    @clangenb
    Contributor

    I did not see that we have a plain cargo update in the makefile - I would remove that definitely. Chances are high that it will break the build soon again.

  5. brenzi commented on Aug 31, 2021

    @brenzi
    Collaborator

    We could try to get teaclave to update the toolchain and then go with that new release. otherwise: I think we will need the .lock file for the forseeable future and cargo update should not appear in the regular workflow

  6. brenzi commented on Sep 13, 2021

    @brenzi
    Collaborator

    Since a few days, our workaround will no longer work because of:
    paritytech/substrate#9741

    This is a severe showstopper.

    Tried to motivate a teaclave upgrade:
    apache/teaclave-sgx-sdk#360

    Without this, I don't see a way to upgrade beyond paritytech/substrate@558a68f

  7. clangenb commented on Sep 13, 2021

    @clangenb
    Contributor

    I don't see any either, except for one I want to prevent at all costs because it might get ugly: patching and back-porting proc-macro2.

  8. clangenb commented on Jan 25, 2022

    @clangenb
    Contributor

    @haerdib can this be closed?

  9. haerdib commented on Jan 25, 2022

    @haerdib
    ContributorAuthor

    Yes, it can. It was solved with #603.
    Thanks for pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    F2-bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions