Makefile g4py带TLS参考的建筑错误

Makefile g4py带TLS参考的建筑错误,makefile,python-module,Makefile,Python Module,我正在尝试编译g4py。我已经使用了“/configure”,现在我正在尝试运行“make”,但在编译过程中出现了一些错误,这些错误看起来都与第一个类似: Building a module G4event.so ... /usr/bin/ld: anEventAllocator: TLS reference in /home/marcin/geant4/geant4.10.0-install/lib64/libG4persistency.so mismatches non-TLS refere

我正在尝试编译g4py。我已经使用了“/configure”,现在我正在尝试运行“make”,但在编译过程中出现了一些错误,这些错误看起来都与第一个类似:

Building a module G4event.so ...
/usr/bin/ld: anEventAllocator: TLS reference in /home/marcin/geant4/geant4.10.0-install/lib64/libG4persistency.so mismatches non-TLS reference in pyG4Event.o
/home/marcin/geant4/geant4.10.0-install/lib64/libG4persistency.so: error adding symbols: bad value
collect2: error: ld returned 1 exit status
在“make install”之后,我得到了相同的错误,之后我无法导入g4py,因为错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marcin/geant4/geant4.10.0-install/g4py/lib/Geant4/__init__.py", line 17, in <module>
    from G4intercoms import *
ImportError: /home/marcin/geant4/geant4.10.0-install/g4py/lib/Geant4/G4intercoms.so: undefined symbol: G4cout
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/home/marcin/geant4/geant4.10.0-install/g4py/lib/geant4/\uuuuu init\uuuuuuuuuuuuuuuu.py”,第17行,在
从G4Intercom导入*
导入错误:/home/marcin/geant4/geant4.10.0-install/g4py/lib/geant4/g4intercommons.so:未定义符号:G4cout

有人知道这是怎么回事吗?

确保链接到Geant 4.10的非多线程版本,因为g4py还没有多线程支持。使用cmake配置GEANT4安装时,可以通过指定-DGEANT4_build_MULTITHREADED=OFF来生成非多线程版本