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

error: capturing a structured binding is not yet supported in OpenMP on FreeBSD #2022

Open
Martinfx opened this issue Oct 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Martinfx
Copy link

Martinfx commented Oct 5, 2024

Describe the bug (both Chinese and English are OK)

hi,
I tried to build the last tag. It is a problem with OpenMP

rc/nodes/neo/PrimUnmerge.cpp.o -c /wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:237:35: warning: captured structured bindings are a C++20 extension [-Wc++20-extensions]
  237 |                     arr[i] = attr[val[i]];
      |                                   ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:227:26: note: 'val' declared here
  227 |         for (auto &[key, val]: mapping) {
      |                          ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:237:35: error: capturing a structured binding is not yet supported in OpenMP
  237 |                     arr[i] = attr[val[i]];
      |                                   ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:227:26: note: 'val' declared here
  227 |         for (auto &[key, val]: mapping) {
      |                          ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:261:35: warning: captured structured bindings are a C++20 extension [-Wc++20-extensions]
  261 |                     arr[i] = attr[val[i]];
      |                                   ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:251:26: note: 'val' declared here
  251 |         for (auto &[key, val]: mapping) {
      |                          ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:261:35: error: capturing a structured binding is not yet supported in OpenMP
  261 |                     arr[i] = attr[val[i]];
      |                                   ^
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:251:26: note: 'val' declared here
  251 |         for (auto &[key, val]: mapping) {
      |                          ^
2 warnings and 2 errors generated.

Environment

  • System: FreeBSD 13.3. , FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g6009708b4367)

  • Zeno Version: zeno-2024.10.1/

  • Graphics card (for viewport bugs): NVIDIA GeForce GTX 1060 6GB

-- Found OpenMP_C: -fopenmp=libomp (found version "5.1")
-- Found OpenMP_CXX: -fopenmp=libomp (found version "5.1")
-- Found OpenMP: TRUE (found version "5.1")
-- Found OpenMP::OpenMP_CXX

@Martinfx Martinfx added the bug Something isn't working label Oct 5, 2024
@VVD
Copy link

VVD commented Nov 20, 2024

Same here on FreeBSD 14.1-p6 amd64 with clang 18.1.5.

This commit added lines with error: 5c493ad

@VVD
Copy link

VVD commented Nov 20, 2024

llvm/llvm-project#33025

freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue Nov 20, 2024
Use GCC for build:
/wrkdirs/usr/ports/graphics/zeno/work/zeno-2024.10.1/zeno/src/nodes/neo/PrimUnmerge.cpp:237:35: error: capturing a structured binding is not yet supported in OpenMP
  237 |                     arr[i] = attr[val[i]];
      |                                   ^

Upstream issue:	zenustech/zeno#2022
LLVM issue:	llvm/llvm-project#33025

Changelog:
https://github.com/zenustech/zeno/releases/tag/2024.10.1

PR:	282753
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

2 participants