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

Fix <anonymous> declared here #44

Merged

Conversation

DariaMityagina
Copy link
Contributor

Summary

[Ubuntu24.04] llvm-project in vpux_plugin fails to compile due to:

/build/third_party/vpux_plugin/src/vpux_plugin/src/vpux_compiler/src/dialect/const/utils/constant_folding_cache.cpp:26:22:
/usr/include/c++/13/bits/atomic_base.h:481:25: error: 'void __atomic_store_8(volatile void*, long unsigned int, int)' writing 8 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
  481 |         __atomic_store_n(&_M_i, __i, int(__m));
      |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In member function 'vpux::Const::FoldingRequest vpux::Const::ConstantFoldingCache::getRequest()':
cc1plus: note: destination object is likely at address zero
error: redundant move in initialization [-Werror=redundant-move]
      update_concat_out_fq(std::move(node), fqs_to_align);
vpux_plugin/thirdparty/llvm-project/llvm/include/llvm/ADT/FunctionExtras.h:307:7: error: '<unnamed>.llvm::unique_function<__attribute__((const)) bool(mlir::OpOperand&)>::<unnamed>.llvm::detail::UniqueFunctionBase<bool, mlir::OpOperand&>::StorageUnion.llvm::detail::UniqueFunctionBase<bool, mlir::OpOperand&>::StorageUnionT::OutOfLineStorage' may be used uninitialized [-Werror=maybe-uninitialized]
      StorageUnion.OutOfLineStorage = RHS.StorageUnion.OutOfLineStorage;
c++/13/bits/stl_algobase.h:437:30: error: 'void* __builtin_memmove(void*, const void*, long unsigned int)' forming offset 200 is out of the bounds [0, 200] of object '<anonymous>' with type 'llvm::SmallVector<VPUNN::DPULayer>' [-Werror=array-bounds=]
       __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);

etc

JIRA ticket

  • E-127832

Related PR in NPU Compiler and/or OpenVINO repository with sub-module update

  • PR-xxx

Other related tickets

List tickets for additional work, eg, something was found during review but you agreed to address it in another Jira

  • E-xxxxx

@DariaMityagina
Copy link
Contributor Author

@Maxim-Doronin could you please take a look?

@Maxim-Doronin Maxim-Doronin merged commit 0beab98 into intel:npu/release/17.x Jun 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants