C++ tests fail to compile
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp
- Domain
- testing-qa
Research direction
Start with test/testdata/custom_op_get_const_input_test_library/custom_op.cc, where FreeBSD 15.1 compilation fails because ORT_UNUSED_PARAMETER is undeclared at lines 36 and 46. Check how this macro is made available in nearby test code, then reproduce the reported compile failure. Done means this test library compiles on the reported platform.
Written by the indexing model from the issue text.
Description
/usr/ports/misc/onnxruntime/work/onnxruntime-1.31.0/onnxruntime/test/testdata/custom_op_get_const_input_test_library/custom_op.cc:36:3: error: use of undeclared identifier 'ORT_UNUSED_PARAMETER'
36 | ORT_UNUSED_PARAMETER(context);
| ^~~~~~~~~~~~~~~~~~~~
/usr/ports/misc/onnxruntime/work/onnxruntime-1.31.0/onnxruntime/test/testdata/custom_op_get_const_input_test_library/custom_op.cc:46:3: error: use of undeclared identifier 'ORT_UNUSED_PARAMETER'
46 | ORT_UNUSED_PARAMETER(api);
| ^~~~~~~~~~~~~~~~~~~~
2 errors generated.
Version: 1.31.0
FreeBSD 15.1
- Dominant language
- C++
- Stars
- 22.2k
- Forks
- 4.4k
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 312
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/onnxruntime
-
platform:web
Difficulty 1/5 Under an hour Newbie friendliness 82/100
microsoft/onnxruntime#33570 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/onnxruntime#33300 ·
Maintainers usually reply within 2 days
-
LayerNormFusionL2 removes a public duplicate Sub outputPossibly taken @Yuhx141 claimed this 28 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
microsoft/onnxruntime#32953 ·
Maintainers usually reply within 2 days
-
IsInitializerWithExpectedValue(int64_t) dereferences a null constant initializerPossibly taken @Yuhx141 claimed this 28 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
microsoft/onnxruntime#32907 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
microsoft/onnxruntime#32881 ·
Maintainers usually reply within 2 days
All issues in microsoft/onnxruntime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
sandialabs/Fenix#172 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
scp-fs2open/fs2open.github.com#7953 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SteveMacenski/slam_toolbox#907 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day