qualcomm/extension-wos-porter/wos-build-error-recipes

Claude Code and agent skill by qualcomm/extension-wos-porter

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

ARM64 build/link error diagnosis and fix recipes for Windows (C-series compiler errors, LNK linker errors, D80xx conflicts, .sln/.vcxproj platform mis-configuration, dumpbin AA64 validation). Load when triaging an ARM64 build log line-by-line — do NOT load for general porting questions.

Install

npx vskill@latest install qualcomm/extension-wos-porter/wos-build-error-recipes

SKILL.md

The same SKILL.md was published earlier as qualcomm/extension-wos-porter/wos-build-error-recipes.

ARM64 Build Error Recipes

Compiler errors

C1083 — Cannot open include file
HeaderCauseFix
xmmintrin.h, emmintrin.h, immintrin.h, intrin.h (x86 SIMD)x86 header not on ARM64Wrap include in `#if defined(_M_IX86) \\defined(_M_X64)`
arm_acle.hMissing in old MSVCGuard with #if !defined(_MSC_VER) or manually define needed macros
arm_neon.hUsually present on ARM64 MSVCVerify VS ARM64 workload is installed
C2065 / C3861 — Undeclared identifier
IdentifierCauseFix
_mm_*, _mm256_*, _mm512_*SSE/AVX intrinsic on ARM64Guard with `#if defined(_M_IX86) \\defined(_M_X64)`
__m128, __m128i, __m128dSSE types on ARM64Same arch guard
__cpuid, __cpuidexx86 CPU detectionGuard; use IsProcessorFeaturePresent() on ARM64
_xgetbvx86 XSAVE featureGuard with x86 arch check
__rdtsc, __rdtscpx86 TSCUse QueryPerformanceCounter() on ARM64
_BitScanForward64, _BitScanReverse64Available on ARM64 tooEnsure <intrin.h> is included
_umul128x64-onlyUse __umulh on ARM64
C2059 — Syntax error with __asm

MSVC inline asm is x86-32 only (not x64, not ARM64). Wrap in #if defined(_M_IX86) and provide a compiler-intrinsic / C fallback for other targets.

D8016 — Conflicting compiler options
ConflictFix
/arch:SSE2 with ARM64Remove for ARM64 (NEON implicit)
/arch:AVX* with ARM64Remove for ARM64
/favor:INTEL64 or /favor:AMD64 with ARM64Remove for ARM64

Linker errors

LNK1112 — module machine type 'x64' conflicts with target 'ARM64'

An x64 .lib is being linked into an ARM64 build. Identify via AdditionalDependencies and library paths; rebuild the dep for ARM64 or use dumpbin /HEADERS on each candidate to confirm.

LNK2019 — unresolved external symbol

Common causes: source file excluded from ARM64 config, or function behind #ifdef _M_X64 with no ARM64 alternative. Ensure the ARM64 impl (or scalar fallback) is compiled in.

LNK1246 — '/DYNAMICBASE:NO' not compatible with ARM64

ARM64 Windows requires ASLR. Set <RandomizedBaseAddress>true</RandomizedBaseAddress> or remove /DYNAMICBASE:NO.

LNK1104 — cannot open file '<name>.lib'

Library path likely hardcodes x64. Replace with $(Platform) macro or an ARM64 path.

Platform configuration

"Platform 'ARM64' not found in solution"

.sln:

GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Release|ARM64 = Release|ARM64
EndGlobalSection

.vcxproj — duplicate x64 PropertyGroup / ItemDefinitionGroup for ARM64:

xml
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>

dumpbin validation

Machine type codes:

CodeArchExpected?
AA64ARM64 (AArch64)YES
8664x64 (AMD64)NO
14Cx86 (i386)NO
1C0ARM (32-bit)NO
powershell
# Machine type
dumpbin /HEADERS <binary> | Select-String "machine \("
# Bulk check
Get-ChildItem -Recurse -Include *.exe,*.dll | ForEach-Object {
$m = & dumpbin /HEADERS $_.FullName 2>&1 | Select-String "machine \("
"$($_.Name): $m"
}

Common dumpbin issues:

SymptomCauseFix
Shows 8664 (x64) instead of AA64Wrong toolchainVerify Platform=ARM64 in build command
Mixed archs across outputsSome projects not switchedCheck each .vcxproj has ARM64 platform
"not a valid Win32 application"Wrong-arch binaryRebuild with correct target

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/qualcomm/extension-wos-porter/wos-build-error-recipes/badge)](https://verified-skill.com/skills/qualcomm/extension-wos-porter/wos-build-error-recipes)

Something wrong with this skill or its page? Tell us.