acidanthera / bugtracker

Acidanthera Bugtracker
385 stars 44 forks source link

opencore 0.8.7 build failed #2177

Closed yanlusu closed 1 year ago

yanlusu commented 1 year ago
  1. download source code OpenCorePkg-0.8.7.tar.gz from OpenCore/release;
  2. unzip source code package;
  3. run ./build_oc.tool;
  4. error output and build failed;
/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Include -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Test/UnitTest/Include -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Include/X64 /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Library/BaseLib/GetPowerOfTwo32.c
/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/OpenCorePkg/Library/OcCpuLib/FrequencyDetect.c:621:41: error: no member named 'NotUsed' in 'struct CPUID_VERSION_INFO_ECX::(unnamed at /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Include/Register/Intel/Cpuid.h:169:3)'
    *UnderHypervisor = CpuidVerEcx.Bits.NotUsed != 0;
                       ~~~~~~~~~~~~~~~~ ^
/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/OpenCorePkg/Library/OcCpuLib/FrequencyDetect.c:629:24: error: no member named 'NotUsed' in 'struct CPUID_VERSION_INFO_ECX::(unnamed at /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Include/Register/Intel/Cpuid.h:169:3)'
  if (CpuidVerEcx.Bits.NotUsed == 0) {
      ~~~~~~~~~~~~~~~~ ^
2 errors generated.
"clang" -MMD -MF /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/Build/OpenCorePkg/DEBUG_XCODE5/X64/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr/OUTPUT/X64/CompareMem.obj.deps -E -x assembler-with-cpp -include AutoGen.h -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Library/BaseMemoryLibRepStr/X64 -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Library/BaseMemoryLibRepStr -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/Build/OpenCorePkg/DEBUG_XCODE5/X64/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr/DEBUG -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Include -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Test/UnitTest/Include -I/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Include/X64 /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.nasm > /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/Build/OpenCorePkg/DEBUG_XCODE5/X64/MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr/OUTPUT/X64/CompareMem.ii
make: *** [/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/Build/OpenCorePkg/DEBUG_XCODE5/X64/OpenCorePkg/Library/OcCpuLib/OcCpuLib/OUTPUT/FrequencyDetect.obj] Error 1

build.py...
 : error 7000: Failed to execute command
    make tbuild [/Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/Build/OpenCorePkg/DEBUG_XCODE5/X64/OpenCorePkg/Library/OcCpuLib/OcCpuLib]

build.py...
 : error F002: Failed to build module
    /Volumes/MacintoshHD/hackintosh/Hackintosh-OpenCore/OpenCorePkg-0.8.7/UDK/OpenCorePkg/Library/OcCpuLib/OcCpuLib.inf [X64, XCODE5, DEBUG]

- Failed -
Build end time: 15:04:54, Dec.10 2022
Build total time: 00:00:29

there is no NotUsed field defined in struct CPUID_VERSION_INFO in header file: audk/Include/Register/Intel/Cpuid.h

PMheart commented 1 year ago

Hello. Please clone from our master branch, instead of downloading the source code from the releases page.