{
  "id": "G012",
  "slug": "pytorch-custom-c-extension-undefined-symbol-after-cxx11-abi-change",
  "status": "search-necessary",
  "product": "PyTorch",
  "family": "Serialization security default",
  "canonical_url": "https://gitdocs.org/fix/pytorch-custom-c-extension-undefined-symbol-after-cxx11-abi-change",
  "query_alias_url": "https://gitdocs.org/q/pytorch-custom-c-extension-undefined-symbol-after-cxx11-abi-change",
  "markdown_url": "https://gitdocs.org/fix/pytorch-custom-c-extension-undefined-symbol-after-cxx11-abi-change.md",
  "json_url": "https://gitdocs.org/api/fixes/pytorch-custom-c-extension-undefined-symbol-after-cxx11-abi-change.json",
  "canonical_query": "PyTorch _GLIBCXX_USE_CXX11_ABI custom extension documentation",
  "observed_codex_queries": [
    "site:pytorch.org CXX11 ABI PyTorch custom C++ extension undefined symbol _GLIBCXX_USE_CXX11_ABI",
    "PyTorch _GLIBCXX_USE_CXX11_ABI custom extension documentation",
    "site:pytorch.org/docs torch.utils.cpp_extension ABI compatible compiler _GLIBCXX_USE_CXX11_ABI",
    "https://pytorch.org/docs/stable/cpp_extension.html",
    "'ABI' in https://docs.pytorch.org/docs/2.12/cpp_extension.html",
    "https://docs.pytorch.org/docs/2.12/cpp_extension.html",
    "https://raw.githubusercontent.com/pytorch/pytorch/v2.12.0/torch/utils/cpp_extension.py",
    "'_add_gnu_cpp_abi_flag' in https://raw.githubusercontent.com/pytorch/pytorch/v2.12.0/torch/utils/cpp_extension.py",
    "'_get_glibcxx_abi_build_flags' in https://raw.githubusercontent.com/pytorch/pytorch/v2.12.0/torch/utils/cpp_extension.py",
    "PyTorch 2.6 CXX11 ABI manylinux 2.28 custom extension",
    "site:github.com/pytorch/pytorch _GLIBCXX_USE_CXX11_ABI manylinux 2.28 PyTorch",
    "\"PyTorch\" \"CXX11 ABI\" \"manylinux_2_28\"",
    "\"_GLIBCXX_USE_CXX11_ABI\" \"PyTorch\" \"wheels\"",
    "https://github.com/pytorch/pytorch/blob/v2.12.0/torch/utils/cpp_extension.py",
    "https://pytorch.org/blog/pytorch2-6/",
    "https://pytorch.org/blog/pytorch2-7/",
    "PyTorch 2.7 release blog CXX11_ABI=1 manylinux 2.28",
    "https://pytorch.org/blog/pytorch-2-7/"
  ],
  "organic_dependency_search_count": 22,
  "affected_versions": "",
  "exact_errors": [],
  "diagnosis": "The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.",
  "before": "",
  "after": "",
  "verification": "Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.",
  "unsafe_fixes": [
    "Changing local code without checking the current external contract.",
    "Retrying the same install, build, or API call with no version/source change.",
    "Applying a broad unsafe bypass when a narrow compatibility fix is available."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": true,
    "no_web_strict_pass": false,
    "search_necessity_under_fixture": true,
    "no_web_oracle_note": "If no_web_strict_pass is true, this page is search-observed but not search-necessary under the current visible fixture."
  },
  "source_trail": [
    {
      "url": "https://docs.pytorch.org/docs/stable/notes/serialization.html#torch-load-with-weights-only-true",
      "label": "PyTorch serialization notes"
    },
    {
      "url": "https://pytorch.org/docs/stable/cpp_extension.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://docs.pytorch.org/docs/2.12/cpp_extension.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://raw.githubusercontent.com/pytorch/pytorch/v2.12.0/torch/utils/cpp_extension.py",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://github.com/pytorch/pytorch/blob/v2.12.0/torch/utils/cpp_extension.py",
      "label": "GitHub source file or repository reference"
    },
    {
      "url": "https://pytorch.org/blog/pytorch2-6/",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://pytorch.org/blog/pytorch2-7/",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://pytorch.org/blog/pytorch-2-7/",
      "label": "Official reference opened by Codex"
    }
  ],
  "source_github_links": [
    {
      "url": "https://raw.githubusercontent.com/pytorch/pytorch/v2.12.0/torch/utils/cpp_extension.py",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://github.com/pytorch/pytorch/blob/v2.12.0/torch/utils/cpp_extension.py",
      "label": "GitHub source file or repository reference"
    }
  ]
}
