首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pythran“未定义对`ATL_caxpby的引用”错误

Pythran“未定义对`ATL_caxpby的引用”错误
EN

Stack Overflow用户
提问于 2020-11-28 06:04:22
回答 1查看 34关注 0票数 0

我已经按照instruction安装了pythran

代码语言:javascript
复制
sudo apt-get install libatlas-base-dev
sudo apt-get install python-dev python-ply python-networkx python-numpy
pip install pythran

我有pythran==0.9.7,gast==0.4.0,g++==5.5.0,ubuntu16.04

尝试运行pythran dprod.py (与他们的教程中的文件相同)会抛出一个错误,结果如下:

代码语言:javascript
复制
/home/viktoriya/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/libblas.so: undefined reference to `ATL_caxpby'
collect2: error: ld returned 1 exit status
WARNING: Compilation error, trying hard to find its origin...
WARNING: Nop, I'm going to flood you with C++ errors!
CRITICAL: Cover me Jack. Jack? Jaaaaack!!!!
E: error: Command "/home/viktoriya/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/viktoriya/anaconda3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/viktoriya/anaconda3/include -fPIC -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_BLAS -I/home/viktoriya/anaconda3/lib/python3.8/site-packages/pythran -I/home/viktoriya/anaconda3/lib/python3.8/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/home/viktoriya/anaconda3/include -I/home/viktoriya/anaconda3/include/python3.8 -c /tmp/tmpvkyb90vr.cpp -o /tmp/tmpidzc_k4l/tmp/tmpvkyb90vr.o -std=c++11 -fno-math-errno -w -fvisibility=hidden -fno-wrapv" failed with exit status 1

更新:我也安装了libblas-dev。

我该如何解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-11-28 18:06:06

CFLAGS="-lblas" pythran dprod.py成功了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65044319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档