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

An error occurs when building ebpf-for-windows-demo.sln. #126

Open
namjunpark opened this issue Apr 1, 2024 · 0 comments
Open

An error occurs when building ebpf-for-windows-demo.sln. #126

namjunpark opened this issue Apr 1, 2024 · 0 comments

Comments

@namjunpark
Copy link

namjunpark commented Apr 1, 2024

What is the error "Program type not found for section name sockops"?

The build error is shown below

5>CustomBuild:
          Project "F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_km\conn_track.vcxproj" on node 1 (default target).
          DriverBuildNotifications:
            Building 'conn_track_km' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
            Using KMDF 1.15.
          PrepareForBuild:
            Creating the "x64\Release\" directory.
            Structured output is available. The format of compiler diagnostics reflects the error hierarchy. For more information, see https://aka.ms/cpp/structured-output.
            Creating the directory "x64\Release\conn_track_km.tlog\".
          InitializeBuildStatus:
            Creating "x64\Release\conn_track_km.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
            Connecting (touching) to "x64\Release\conn_track_km.tlog\unsuccessfulbuild".
          PreBuildEvent:
            F:\Git_backup\ebpf-for-windows-demo\packages\eBPF-for-Windows.0.11.0\build\native\bin\bpf2c --bpf conn_track
          .o --sys conn_track_driver.c
            :VCEnd
      6>Link:
          All 369 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
          You have generated code.

5>CustomBuild:
            Program type not found for section name sockops
      5>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets
        (156,5): error MSB3073: "F:\Git_backup\ebpf-for-windows-demo\packages\eBPF-for-Windows.0.11.0\build\native\bin\b
        pf2c --bpf conn_track.o --sys conn_track_driver.c [F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_
        km\conn_track.vcxproj] [F:\Git_backup\ebpf-for-windows-demo\connection_tracker\bpf\bpf.vcxproj]
      5>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets
        (156,5): error MSB3073: :VCEnd" command terminated (code: 1). [F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_
        km\conn_track.vcxproj] [F:\Git_backup\ebpf-for-windows-demo\connection_tracker\bpf\bpf.vcxproj]
          Built the project "F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_km\conn_track.vcxproj" (default target). - failure

          Build failed.

          "F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_km\conn_track.vcxproj" (default target)(1)->
          (PreBuildEvent target) ->
      5>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets
        (156,5): error MSB3073: "F:\Git_backup\ebpf-for-windows-demo\packages\eBPF-for-Windows.0.11.0\build\native\bin\b
        pf2c --bpf conn_track.o --sys conn_track_driver.c [F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_
        km\conn_track.vcxproj] [F:\Git_backup\ebpf-for-windows-demo\connection_tracker\bpf\bpf.vcxproj]
      5>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets
        (156,5): error MSB3073: :VCEnd" command terminated (code: 1). [F:\Git_backup\ebpf-for-windows-demo\x64\Release\conn_track_
        km\conn_track.vcxproj] [F:\Git_backup\ebpf-for-windows-demo\connection_tracker\bpf\bpf.vcxproj]

              0 warnings
              1 error

The build environment is as follows.

  • Windows 11 Pro 23H2 22631.3296
  • visual studio professional 2022 17.9.5

sdk & wdk information

image

Updating and downgrading to the latest version of the eBPF-for-Windows nuget package does not change the error.

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

No branches or pull requests

1 participant