def_parser doesn't output some symbols outputted by dumpbin
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 75
Description
### Description of the bug:
>cd /d C:/users/kbuilder/_bazel_kbuilder/qm7b2eqz/execroot/_main
C:\Users\kbuilder\_bazel_kbuilder\qm7b2eqz\execroot\_main>dumpbin /SYMBOLS bazel-out/x64_windows-opt/bin/pybind/_objs/_pybind_copy_cc_library/pybind_copy.obj | grep "first_func"
1379 00000000 UNDEF notype () External | ?first_func@@YAHH@Z (int __cdecl first_func(int))
3ECF 00000000 SECT1363 notype External | ??_C@_0L@FOJEACOF@first_func@ (`string')
C:\Users\kbuilder\_bazel_kbuilder\qm7b2eqz\execroot\_main>C:/Users/kbuilder/_bazel_kbuilder/qm7b2eqz/execroot/_main/external/bazel_tools/tools/def_parser/def_parser.exe ../../../../source/repos/pybind_copy.gen.def random_name bazel-out/x64_windows-opt/bin/pybind/_objs/_pybind_copy_cc_library/pybind_copy.obj
C:\Users\kbuilder\_bazel_kbuilder\qm7b2eqz\execroot\_main>cat ../../../../source/repos/pybind_copy.gen.def | grep "first_func"
C:\Users\kbuilder\_bazel_kbuilder\qm7b2eqz\execroot\_main>
### Which category does this issue belong to?
Core
### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
_No response_
### Which operating system are you running Bazel on?
Windows
### What is the output of `bazel info release`?
_No response_
### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.
_No response_
### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?
_No response_
### Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
_No response_
### Have you found anything relevant by searching the web?
_No response_
### Any other information, logs, or outputs that you want to share?
_No response_
Contributor guide
Research direction
Start with the def_parser.exe entry point and reproduce the Windows command using dumpbin /SYMBOLS on pybind_copy.obj. Compare the symbols shown by dumpbin with the generated pybind_copy.gen.def; the work is done when symbols such as first_func are emitted in the .def output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100