Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

C++ tests fail to compile

Open Beginner friendly
#33,430 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@winstonwen727 is already working on this.

Since Oct 20, 2026.

  • #33502 by @winstonwen727 — open

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

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/onnxruntime

All issues in microsoft/onnxruntime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.