Skip to content

bump libffi - #166574

Open
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:libffi
Open

RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:libffi

Conversation

@RalfJung

Copy link
Copy Markdown
Member

@rustbot

rustbot commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 25, 2026
@rustbot

rustbot commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Mark-Simulacrum

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

📌 Commit c9feac0 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 26, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 26, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 26, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 26, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #166235 (Keep opening '(' when suggesting to remove '&' from pattern)
 - #166516 (Fix ICE in iterator method suggestion when the receiver is a block)
 - #166586 (abby test dsl: one binder to rule them all)
 - #164289 (Add regression test for self-referential GAT with missing lifetime argument)
 - #165859 (Add codegen test for MaybeUninit array built in the return slot)
 - #166092 (add fake borrow tests for divergent match guards)
 - #166292 (Don't suggest closure braces for errors inside the body)
 - #166435 (Encode direct const mir)
 - #166447 (Document allocator behaviour of BTreeMap::append and BTreeSet::append)
 - #166558 (triagebot: Send "in progress" message when nomination is in progress pt. 2)
 - #166574 (bump libffi)
 - #166584 (Arg pos const mismatch ice)
 - #166599 (add alias-bound test)
 - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.)

Failed merges:

 - #166583 (abby dsl tests: the passing test should check-pass)
@JonathanBrouwer

Copy link
Copy Markdown
Member

💔 I suspect this PR failed tests as part of a rollup
@bors r-

After fixing the problem, consider running a try job for the failed job before re-approving.

Link to failure: #166619 (comment)

@bors try jobs=test-aarch64-gnu-debug

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 26, 2026
@rust-bors

rust-bors Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved.

This PR was contained in a rollup (#166619), which was unapproved.

View changes since this unapproval

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 26, 2026
bump libffi


try-job: test-aarch64-gnu-debug
@rust-bors

rust-bors Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 67b2999 failed: CI. Failed job:

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-aarch64-gnu-debug failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
  checking for aarch64-unknown-linux-gnu-cxx... no
  checking for aarch64-unknown-linux-gnu-cc++... no
  checking for aarch64-unknown-linux-gnu-cl.exe... no
  checking for aarch64-unknown-linux-gnu-FCC... no
  checking for aarch64-unknown-linux-gnu-KCC... no
  checking for aarch64-unknown-linux-gnu-RCC... no
  checking for aarch64-unknown-linux-gnu-xlC_r... no
  checking for aarch64-unknown-linux-gnu-xlC... no
  checking for aarch64-unknown-linux-gnu-clang++... no
  checking for g++... g++
  checking whether the compiler supports GNU C++... yes
  checking whether g++ accepts -g... yes
  checking for g++ option to enable C++11 features... none needed
  checking dependency style of g++... gcc3
---

  --- stderr
  clang: error: unsupported option '-print-multi-os-directory'
  clang: error: no input files
  config.status: error: in `/checkout/obj/build/aarch64-unknown-linux-gnu/stage2-tools/aarch64-unknown-linux-gnu/release/build/libffi-sys/2cf3892ee75c61c2/out/libffi-build/aarch64-unknown-linux-gnu':
  config.status: error: Something went wrong bootstrapping makefile fragments
      for automatic dependency tracking.  If GNU make was not used, consider
      re-running the configure script with MAKE="gmake" (or whatever is
      necessary).  You can also try re-running configure with the
      '--disable-dependency-tracking' option to at least be able to build
      the package (albeit without support for automatic dependency tracking).
  See `config.log' for more details

  thread 'main' (98978) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libffi-sys-4.2.2/build/not_msvc.rs:154:5:
  Configuring libffi: exit status: 1 (cd "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2-tools/aarch64-unknown-linux-gnu/release/build/libffi-sys/2cf3892ee75c61c2/out/libffi-build" && CC="clang" CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -g -gdwarf-4 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer --target=aarch64-unknown-linux-gnu -w" LC_ALL="C" "sh" "./configure" "--with-pic" "--disable-shared" "--disable-docs" "--host=aarch64-unknown-linux-gnu" "--prefix" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2-tools/aarch64-unknown-linux-gnu/release/build/libffi-sys/2cf3892ee75c61c2/out/libffi-root")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
[RUSTC-TIMING] rustc_demangle test:false 1.764
[RUSTC-TIMING] regex_automata test:false 14.407
[RUSTC-TIMING] object test:false 10.620

@RalfJung

Copy link
Copy Markdown
Member Author

Seems to be caused by using clang as the C compiler: libffi-rs/libffi-rs#211.
We did the same bump in Miri's CI and it worked fine there as we are using GCC.

@Kobzol do all CI builds use clang as the C compiler?

@Mark-Simulacrum

Copy link
Copy Markdown
Member

A portion do, but not all builds. We need (prefer?) clang for similar PGO configuration where we use that.

@RalfJung

Copy link
Copy Markdown
Member Author

Apparently that error is not the actual problem, and the actual problem could be worked around by setting MKDIR_P to mkdir -p. But that seems... kind of hacky?^^

This branch has not been deployed

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

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[riscv64] native-lib tests SIGSEGV on riscv64gc-unknown-linux-gnu

5 participants