Skip to content

Conversation

huajingyun01
Copy link
Contributor

@huajingyun01 huajingyun01 commented May 27, 2024

Upgrade libc to v0.2.155 to support LoongArch64.

Resolve the following errors:

error[E0425]: cannot find value `__SIZEOF_PTHREAD_RWLOCK_T` in the crate root
    --> /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/linux_like/linux/align.rs:139:30
     |
139  |                 size: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T],
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `__SIZEOF_PTHREAD_RWLOCKATTR_T`
     |
    ::: /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/linux_like/linux/musl/mod.rs:637:1
     |
637  | pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8;
     | --------------------------------------------------- similarly named constant `__SIZEOF_PTHREAD_RWLOCKATTR_T` defined here
     |
    ::: /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/linux_like/linux/mod.rs:5682:1
     |
5682 | expand_align!();
     | --------------- in this macro invocation
     |
     = note: this error originates in the macro `expand_align` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find value `__SIZEOF_PTHREAD_BARRIER_T` in the crate root
    --> /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/linux_like/linux/align.rs:167:30
     |
167  |                 size: [u8; ::__SIZEOF_PTHREAD_BARRIER_T],
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `__SIZEOF_PTHREAD_BARRIERATTR_T`

Libc release notes :https://github.com/rust-lang/libc/releases

Thanks.

@jamesrswift
Copy link

new phone who dis

@Enivex
Copy link
Collaborator

Enivex commented May 27, 2024

Since it's not clear from the PR, the relevant change is this rust-lang/libc#3606

@huajingyun01
Copy link
Contributor Author

Hi @Jamesxx @Enivex
I had to update libc to 0.2.155 to support LoongArch64, because typst compilation based on musl LoongArch64 failed.
rust-lang/libc#3606

Thanks.

@laurmaedje laurmaedje changed the title Update Cargo.lock Bump libc to v0.2.155 May 29, 2024
@laurmaedje laurmaedje added this pull request to the merge queue May 29, 2024
@laurmaedje
Copy link
Member

laurmaedje commented May 29, 2024

Why not.

See also mozilla/sccache#2188 (comment)

Merged via the queue into typst:main with commit 6d4ed53 May 29, 2024
PgBiel added a commit to tulio240/typst that referenced this pull request May 30, 2024
Refactor frame metadata into tags (typst#4212)


Require `Send` and `Sync` for worlds (typst#4219)


Optimize counters and state (typst#4223)


Add `windows` method to array (typst#4136)

Improve `CITATION.cff` file (typst#4201)


Fix equation resizing when adding the equation number (typst#4179)


`layout` documentation improvements (typst#4196)

Allow somewhat arbitrary characters as `mat`, `vec` and `cases` `delim` (typst#4211)


Do layout short-circuit in flow instead of realization (typst#4231)


Split `BitSet` into two types and make it a bit nicer (typst#4249)


Set default value of `raw.theme` to `auto`, and allow setting `raw.theme` to `auto` (typst#4186)


Extended cargo installation instructions (typst#4168)

Hint for language-region pair on `text.lang` (typst#4183)


Improve macro docs (+ Native*Data docs) (typst#4240)


Rephrase the sentence on variable scope in Scripting documentation (typst#4250)


Refactor `Capable::vtable` to return `Option<NonNull<()>>` (typst#4252)


Nicer test helper CSS (typst#4269)


Trim weak spacing at line start/end in paragraph layout (typst#4087)


Add ability to choose between minified and pretty-printed JSON (typst#4161)


Refactor PDF export (typst#4154)

Reorder syntax kinds (typst#4287)


Fix figure centering (typst#4276)

Fix `Default` impls for AST nodes (typst#4288)


Bump libc to v0.2.155 (typst#4268)


Bump time dependency (typst#4294)
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

Successfully merging this pull request may close these issues.

4 participants