Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    • Search
    • 官网
    1. Home
    2. Ryanxiejh
    R
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Ryanxiejh

    @Ryanxiejh

    0
    Reputation
    2
    Posts
    197
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Ryanxiejh Follow

    Posts made by Ryanxiejh

    • cmake中连接libdl.so,成功编译,但是在提交作业时报错---No such file or directory

      CMakelist.txt中连接libdl:

      target_link_libraries(helloworld libdl.so)
      

      成功编译:

      [ 50%] Building CXX object CMakeFiles/helloworld.dir/1test.cpp.o
      [100%] Linking CXX executable helloworld
      [100%] Built target helloworld
      
      

      使用bsub提交运行时报错:

      [swEnv@psn010 build]$ bsub -I -q q_sw_expr -N 1 -np 1 -sw3run swrun-5a ./helloworld
      Job <52114473> has been submitted to queue <q_sw_expr>
      waiting for dispatch ...
      dispatching ...
      ./helloworld: error while loading shared libraries: libdl.so.2.1: cannot open shared object file: No such file or directory
      [52114473 ## Sat Dec 26 22:03:17 2020] warning: node [0]: user's mpe task: tid= 0, pid= 9559, exit_code= 127
      Job 52114473 has been finished. exit_code is 127
      
      posted in 语言编译
      R
      Ryanxiejh
    • 关于sw5gcc和sw5g++的编译运行问题

      我在登录节点psn***上写了c和c++的helloworld程序(都在/home/export/online3中),分别都可以用sw5gcc和sw5g++编译:

      sw5gcc -mhost helloworld.c -o helloworld.out
      sw5g++ -mhost helloworld.cpp -o helloworld.out
      

      但是在使用bsub的时候都会报错说找不到相关的库:

      bsub -I -q q_sw_expr -N 1 -np 1 -sw3run swrun-5 ./helloworld.out
      ......
      error while loading shared libraries: libc.so.6.1: cannot open shared object file: No such file or directory
      ......
      error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
      

      请问这个要怎么解决?谢谢!

      posted in 申威芯片版块
      R
      Ryanxiejh
    • 1 / 1