Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

PyROOT macro compilation fails on macOS due to libffi-trampolines.dylib linking restriction

Abierto
#21,606 9 comentarios 0 reacciones 1 asignado Ver en GitHub

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

bug in:Python Interface
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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de root-project/root

Todos los issues de root-project/root

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.