Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: examples/developer_guide/3_simple_cpp_stage fails to build in release container on AArch64 #2157

Closed
2 tasks done
dagardner-nv opened this issue Jan 30, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dagardner-nv
Copy link
Contributor

Version

25.02

Which installation method(s) does this occur on?

Docker

Describe the bug.

Using the work-around from #2156 building on arm fails to locate libmorpheus, despite it being present (/opt/conda/envs/morpheus/lib/libmorpheus.so).

Minimum reproducible example

./docker/run_container_release.sh
conda env update --solver=libmamba -n morpheus --file /workspace/conda/environments/dev_cuda-125_arch-$(arch).yaml
cd examples/developer_guide/3_simple_cpp_stage
./compile.sh

Relevant log output

Click here to see error details
[1/3] Linking CXX shared module src/simple_cpp_stage/_lib/pass_thru_cpp.cpython-310-aarch64-linux-gnu.so
FAILED: src/simple_cpp_stage/_lib/pass_thru_cpp.cpython-310-aarch64-linux-gnu.so 
: && /opt/conda/envs/morpheus/bin/c++ -fPIC   -flto -shared  -o src/simple_cpp_stage/_lib/pass_thru_cpp.cpython-310-aarch64-linux-gnu.so src/simple_cpp_stage/_lib/CMakeFiles/src.simple_cpp_stage._lib.pass_thru_cpp.dir/pass_thru.cpp.o  -Wl,-rpath,/opt/conda/envs/morpheus/lib  -lmorpheus  /opt/conda/envs/morpheus/lib/libcudf.so  /opt/conda/envs/morpheus/lib/libglog.so.0.7.1  /opt/conda/envs/morpheus/lib/libcudart.so  -ldl  /opt/conda/envs/morpheus/lib/libfmt.a  /opt/conda/envs/morpheus/lib/libgflags.so.2.2.2  -lpthread  -Wl,-rpath-link,/opt/conda/envs/morpheus/lib && cd /workspace/examples/developer_guide/3_simple_cpp_stage/build/src/simple_cpp_stage/_lib && /opt/conda/envs/morpheus/bin/cmake -E copy /workspace/examples/developer_guide/3_simple_cpp_stage/build/src/simple_cpp_stage/_lib/pass_thru_cpp.cpython-310-aarch64-linux-gnu.so /workspace/examples/developer_guide/3_simple_cpp_stage/src/simple_cpp_stage/_lib
/opt/conda/envs/morpheus/bin/../lib/gcc/aarch64-conda-linux-gnu/12.1.0/../../../../aarch64-conda-linux-gnu/bin/ld: cannot find -lmorpheus
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Full env printout

Click here to see environment details

[Paste the results of print_env.sh here, it will be hidden by default]

Other/Misc.

No response

Code of Conduct

  • I agree to follow Morpheus' Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report
@dagardner-nv dagardner-nv added the bug Something isn't working label Jan 30, 2025
@dagardner-nv dagardner-nv self-assigned this Jan 30, 2025
@dagardner-nv
Copy link
Contributor Author

Unlike #2149 which was reproducible outside the container, this one is specific to the container.

rapids-bot bot pushed a commit that referenced this issue Jan 30, 2025
* Add additional information on when the examples should be compiled with Morpheus or as stand-alone projects.
* Document the need to install developer tools defined in `conda/environments/dev_cuda-125_arch-$(arch).yaml` when using the release container.
* Document the need to reload the env to ensure `LDFLAGS` is defined.

closes #2157

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Will Killian (https://github.com/willkill07)

URL: #2160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant