Linux安装错误 dlopen: cannot load any more object with static TLS
Created by: zxdawn
Info
Output of python summary_env.py
:
/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/fluid/core.py:189: UserWarning: Load /usr/lib64/libgomp.so.1 failed
warnings.warn("Load {} failed".format(dso_absolute_path))
summary_env.py:50: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
plat = platform.linux_distribution()[0]
summary_env.py:51: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
ver = platform.linux_distribution()[1]
Paddle version: None
Paddle With CUDA: None
OS: SUSE Linux Enterprise Server 11
Python version: 3.7.8
CUDA version: None
cuDNN version: None.None.None
Nvidia driver version: None
Installation
- installed by pip:
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
- outpt of
conda list paddle
:
# packages in environment at /yin_raid/xin/miniconda3/envs/paddle_dev:
#
# Name Version Build Channel
paddlepaddle 1.8.4 pypi_0 pypi
Error
(paddle_dev) zhangxin@admin:~/softwares/glibc-2.18> python
Python 3.7.8 | packaged by conda-forge | (default, Jul 31 2020, 02:25:08)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/fluid/core.py:189: UserWarnin
warnings.warn("Load {} failed".format(dso_absolute_path))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/__init__.py", line 37
import paddle.complex
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/complex/__init__.py",
from . import tensor
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/complex/tensor/__init
from . import math
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/complex/tensor/math.p
from paddle.common_ops_import import *
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/common_ops_import.py"
from paddle.fluid.layer_helper import LayerHelper
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/fluid/__init__.py", l
from . import framework
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/fluid/framework.py",
from . import core
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/fluid/core.py", line
raise e
File "/yin_raid/xin/miniconda3/envs/paddle_dev/lib/python3.7/site-packages/paddle/fluid/core.py", line
from .core_avx import *
ImportError: dlopen: cannot load any more object with static TLS
Debug
I've tried to compile the glibc 2.18
with DTV_SURPLUS=32
according to this suggestion and add it to LD_LIBRARY_PATH
:
export LD_LIBRARY_PATH=/public/home/zhangxin/softwares/glibc-2.18:$LD_LIBRARY_PATH
.