Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

在编译PaddlePaddle的时候出现错误

Open yeyupiaoling opened this issue 5 years ago • 9 comments

  • release/1.8
  • Ubuntu 18.04
  • TX2 开发板
  • CUDA 10.0

看样子是编译完成的,但是最后就报这个错误了。

/usr/bin/ld: cannot find ../memory/detail/libbuddy_allocator.a: Too many open files
/usr/bin/ld: cannot find ../memory/detail/libmemory_block.a: Too many open files
/usr/bin/ld: cannot find ../memory/detail/libsystem_allocator.a: Too many open files
/usr/bin/ld: cannot find ../memory/allocation/libauto_growth_best_fit_allocator.a: Too many open files
/usr/bin/ld: cannot find ../memory/allocation/libaligned_allocator.a: Too many open files
/usr/bin/ld: cannot find ../memory/allocation/libbest_fit_allocator.a: Too many open files
/usr/bin/ld: cannot find ../memory/allocation/liballocator.a: Too many open files
/usr/bin/ld: cannot find ../platform/libstream_callback_manager.a: Too many open files
/usr/bin/ld: cannot find ../string/libstringpiece.a: Too many open files
/usr/bin/ld: cannot find ../platform/libcpu_helper.a: Too many open files
/usr/bin/ld: cannot find ../../../libcblas.a: Too many open files
/usr/bin/ld: cannot find ../../../third_party/install/openblas/lib/libopenblas.a: Too many open files
/usr/bin/ld: cannot find ../platform/libcpu_info.a: Too many open files
/usr/bin/ld: cannot find ../platform/stream/libcuda_stream.a: Too many open files
/usr/bin/ld: cannot find ../platform/libcudnn_workspace_helper.a: Too many open files
/usr/bin/ld: cannot find ../platform/libcuda_resource_pool.a: Too many open files
/usr/bin/ld: cannot find ../platform/libgpu_info.a: Too many open files
/usr/bin/ld: cannot find ../framework/libddim.a: Too many open files
/usr/bin/ld: cannot find ../platform/dynload/libdynload_cuda.a: Too many open files
/usr/bin/ld: cannot find ../platform/dynload/libdynamic_loader.a: Too many open files
/usr/bin/ld: cannot find /usr/local/cuda-10.0/lib64/libcudart_static.a: Too many open files
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lrt
/usr/bin/ld: cannot find ../platform/libplace.a: Too many open files
/usr/bin/ld: cannot find ../platform/libenforce.a: Too many open files
/usr/bin/ld: cannot find ../platform/libflags.a: Too many open files
/usr/bin/ld: cannot find ../platform/liberrors.a: Too many open files
/usr/bin/ld: cannot find ../platform/liberror_codes_proto.a: Too many open files
/usr/bin/ld: cannot find ../platform/libcuda_error_proto.a: Too many open files
/usr/bin/ld: cannot find ../framework/libop_proto_maker.a: Too many open files
/usr/bin/ld: cannot find ../framework/libattribute.a: Too many open files
/usr/bin/ld: cannot find ../framework/libframework_proto.a: Too many open files
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find ../../../third_party/install/protobuf/lib/libprotobuf.a: Too many open files
/usr/bin/ld: cannot find ../../../libboost.a: Too many open files
/usr/bin/ld: cannot find ../../../third_party/install/glog/lib/libglog.a: Too many open files
/usr/bin/ld: cannot find ../../../third_party/install/gflags/lib/libgflags.a: Too many open files
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lgcc_s
/usr/bin/ld: cannot find /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o: Too many open files
/usr/bin/ld: cannot find /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o: Too many open files
collect2: error: ld returned 1 exit status
paddle/fluid/pybind/CMakeFiles/paddle_pybind.dir/build.make:1438: recipe for target 'paddle/fluid/pybind/libpaddle_pybind.so' failed
make[2]: *** [paddle/fluid/pybind/libpaddle_pybind.so] Error 1
CMakeFiles/Makefile2:77325: recipe for target 'paddle/fluid/pybind/CMakeFiles/paddle_pybind.dir/all' failed
make[1]: *** [paddle/fluid/pybind/CMakeFiles/paddle_pybind.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

yeyupiaoling avatar Jan 12 '21 12:01 yeyupiaoling

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!

paddle-bot-old avatar Jan 12 '21 12:01 paddle-bot-old

ulimit -n 2048 试下,因为jetson限制了可以同时打开的文件数量

OliverLPH avatar Jan 12 '21 13:01 OliverLPH

@OliverLPH 已经编译成功了,谢谢

yeyupiaoling avatar Jan 13 '21 01:01 yeyupiaoling

自行编译的Paddle的TX2的Python安装包,这里提供给同环境下载的同学下载。

  • Ubuntu 18.04
  • Python 3.6
  • jetpack 4.3
  • CUDA 10.0

下载链接:点击下载

TX2必须要安装numpy1.18.5才行,否则报错。

pip3 install numpy==1.18.5  -i https://mirrors.aliyun.com/pypi/simple/

顺便提供C++库:点击下载

yeyupiaoling avatar Jan 13 '21 01:01 yeyupiaoling

@yeyupiaoling 麻烦问一下,编译成功了用的就是他那个方法吗?

guantao18 avatar Aug 10 '21 02:08 guantao18

不是,在网上找了一个编译方式。

yeyupiaoling avatar Aug 10 '21 02:08 yeyupiaoling

不是,在网上找了一个编译方式。

请问是什么方法?可以分享一下吗

isLiuHao avatar Aug 18 '21 02:08 isLiuHao

太久了,我都找不到那个教程了

yeyupiaoling avatar Aug 18 '21 02:08 yeyupiaoling

如果 ulimit -n 2048,不行的话,可以试试ulimit -n 4096,如果提示不给修改的话,那就重启然后再修改

Hanyonggong avatar Mar 19 '23 13:03 Hanyonggong