PyROOT macro compilation fails on macOS due to libffi-trampolines.dylib linking restriction
Los mantenedores suelen responder en 1 día
@vepadulano ya está trabajando en esto.
Desde el 14/3/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- C++
- Estrellas
- 3.3k
- Forks
- 1.6k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 180
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de root-project/root
-
thisroot.sh: wrong ROOTSYS in zsh when the shell's command line has a newlinePosiblemente ocupada @dpiparo la tomó hace 6 días. Abiertobug in:Build System
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
root-project/root#23746 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[tmva][sofie] Inputs of unsupported type (e.g. float16) give code that does not compile instead of an errorPosiblemente ocupada @lmoneta la tomó hace 16 días. AbiertoAI-Assisted bug in:SOFIE
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
root-project/root#23655 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[graph] TScatter / TScatter2D stops drawing remaining points if a non-positive value is encountered in log scalePosiblemente ocupada @muntasir-396 la tomó hoy. Abiertobug in:Graphics
root-project/root#23833 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
TDataMember::GetOffset interfers to TDataMember::GetOffsetCintPosiblemente ocupada @pcanal la tomó hace 3 días. Abiertobug in:Core Libraries
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
root-project/root#23777 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`TChain::GetEntries` internal caching ineffective?Posiblemente ocupada @pcanal la tomó hace 9 días. Abiertoimprovement in:TTree
root-project/root#23738 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de root-project/root
Issues similares
-
bug IO
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MrNeRF/LichtFeld-Studio#3824 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
bug code-review testing tooling
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
aristocratos/btop#1945 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
boykopovar/AnyPS5#11291 ·
Los mantenedores suelen responder en 1 día