PyROOT macro compilation fails on macOS due to libffi-trampolines.dylib linking restriction
メンテナーはふだん 1 日以内に返信
@vepadulano がすでに取り組んでいます。
2026年3月14日 から。
評価
この issue はまだ評価されていません。
説明
Check duplicate issues.
- Checked for duplicates
Description
When using PyROOT to compile a macro with .L macro.C+, compilation fails with the following linker error:
ld: cannot link directly with 'libffi-trampolines.dylib' because product being built is not an allowed client of it
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Standalone ROOT compiles the same macro fine (root -l .L macro.C+), so this only occurs when running ROOT inside Python.
Environment:
• ROOT version: 6.38.04 (Homebrew)
• Installation method: Homebrew (brew install root)
• Python version: 3.14.3 (Homebrew)
• macOS version: 26.3.1 (Apple Silicon)
Reproducer
Create a minimal macro test_macro.C:
#include <iostream>
void test() {
std::cout << "hello" << std::endl;
}
in a python session:
import ROOT
ROOT.gROOT.ProcessLine(".L test_macro.C+")
ROOT version
| Welcome to ROOT 6.38.04 https://root.cern |
| (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosxarm64 on Mar 11 2026, 21:39:24 |
| From tags/6-38-04@6-38-04 |
| With Apple clang version 17.0.0 (clang-1700.6.4.2) std201703 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
Installation method
Homebrew
Operating system
macOS version: 26.3.1 (Apple Silicon)
Additional context
Doing this solves the problem
export DYLD_LIBRARY_PATH=/opt/homebrew/opt/libffi/lib:$DYLD_LIBRARY_PATH
- 主要言語
- C++
- スター
- 3.3k
- フォーク
- 1.6k
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 180
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
root-project/root のほかの issue
-
thisroot.sh: wrong ROOTSYS in zsh when the shell's command line has a newline対応中かも @dpiparo が 7 日前に担当しました。 オープンbug in:Build System
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
root-project/root#23746 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[tmva][sofie] Inputs of unsupported type (e.g. float16) give code that does not compile instead of an error対応中かも @lmoneta が 17 日前に担当しました。 オープンAI-Assisted bug in:SOFIE
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
root-project/root#23655 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[graph] TScatter / TScatter2D stops drawing remaining points if a non-positive value is encountered in log scale対応中かも @muntasir-396 が 1 日前に担当しました。 オープンbug in:Graphics
root-project/root#23833 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
TDataMember::GetOffset interfers to TDataMember::GetOffsetCint対応中かも @pcanal が 4 日前に担当しました。 オープンbug in:Core Libraries
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
root-project/root#23777 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
`TChain::GetEntries` internal caching ineffective?対応中かも @pcanal が 10 日前に担当しました。 オープンimprovement in:TTree
root-project/root#23738 · コメント 6 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
root-project/root の issue をすべて見る
似ている issue
-
Rifle-variant weapon offsets are saved under the pistol's name [FRIK-093]対応中かも @rollingrock が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rollingrock/Fallout-4-VR-Body#182 ·
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK status対応中かも @leizhiyuan が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/rocketmq-clients#1465 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
cp-algorithms/cp-algorithms#1738 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
KhronosGroup/Vulkan-Tutorial#534 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信