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]: Performing a non-debug build yields several compiler warnings not seen during debug builds #1988

Closed
2 tasks done
dagardner-nv opened this issue Oct 24, 2024 · 0 comments · Fixed by #2054
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@dagardner-nv
Copy link
Contributor

dagardner-nv commented Oct 24, 2024

Version

24.10

Which installation method(s) does this occur on?

Source

Describe the bug.

/home/dagardner/work/conda/envs/morpheus/envs/morpheus-2410reltest/include/boost/fiber/buffered_channel.hpp:71:18: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   71 |         slots_ = new slot_type[capacity_];
      |                  ^
/home/dagardner/work/conda/envs/morpheus/envs/morpheus-2410reltest/x86_64-conda-linux-gnu/include/c++/12.1.0/new: In member function 'get_source':
/home/dagardner/work/conda/envs/morpheus/envs/morpheus-2410reltest/x86_64-conda-linux-gnu/include/c++/12.1.0/new:128:26: note: in a call to allocation function 'operator new []' declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)

Minimum reproducible example

./scripts/compile.sh

Relevant log output

Click here to see error details

[Paste the error here, it will be hidden by default]

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 Oct 24, 2024
@dagardner-nv dagardner-nv self-assigned this Nov 8, 2024
@dagardner-nv dagardner-nv moved this from Todo to In Progress in Morpheus Boards Nov 8, 2024
@morpheus-bot-test morpheus-bot-test bot moved this from In Progress to Review - Ready for Review in Morpheus Boards Nov 12, 2024
@mdemoret-nv mdemoret-nv added this to the 25.02 - Release milestone Nov 20, 2024
rapids-bot bot pushed a commit to nv-morpheus/MRC that referenced this issue Nov 20, 2024
* Set `-lto=auto` to avoid a warning about [falling back to serialized compilation (`cpp/mrc/CMakeLists.txt`)
* Ensure we never pass a capacity value larger than `PTRDIFF_MAX` to `boost::fibers::buffered_channel` avoids a -Walloc-size-larger-than compiler warning (`cpp/mrc/include/mrc/channel/buffered_channel.hpp`).
* Ensure tags are fetched for local CI builds (fixes version number for local conda builds).

Everything else is an IWYU fix

Part of nv-morpheus/Morpheus#1988

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

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #518
@rapids-bot rapids-bot bot closed this as completed in 9b03c13 Nov 20, 2024
@github-project-automation github-project-automation bot moved this from Review - Ready for Review to Done in Morpheus Boards Nov 20, 2024
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
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants