rust-lang / rust-lang/rust

rustc-LLVM ERROR: section size does not fit in a uint32_t

Open
#130,760 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-LLVM C-bug
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Apparently I'm cursed with linker/llvm errors, but building the example examples/ssr_axum in https://github.com/benwis/thaw_llvm_error with the latest stable rust produces this error

   Compiling thaw_utils v0.1.0-beta3 (/celCluster/projects/thaw/thaw_utils)
   Compiling thaw_components v0.2.0-beta3 (/celCluster/projects/thaw/thaw_components)
   Compiling thaw v0.4.0-beta3 (/celCluster/projects/thaw/thaw)
   Compiling demo v0.1.0 (/celCluster/projects/thaw/demo)
rustc-LLVM ERROR: section size does not fit in a uint32_t
error: could not compile `demo` (lib)
Error: Failed to build ssr_axum

The changes undone by this commit might have something to do with it: https://github.com/leptos-rs/leptos/pull/3011/files/6206073c5e50aac57e99e27b4993645d4778a8a8..0375df5431121752579dd50e8aed4393662d8cdc

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure while building examples/ssr_axum in the linked thaw_llvm_error repository with the latest stable Rust. Compare the changes referenced in the linked leptos pull request, then trace which change causes rustc-LLVM ERROR: section size does not fit in a uint32_t. Done means the cause is isolated and a verified correction or regression test is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.