Sascha_77 Posted February 21, 2023 Share Posted February 21, 2023 (edited) Hi Folx. I tried to compile OC under Linux (Debian 11) . But at the end it stops with an Error. Any suggestions? And by the way in macOS (Ventura) it fails too. Spoiler clang: error: unknown argument: '-mstack-protector-guard=global' "clang" -MMD -MF /root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull/OUTPUT/BaseReportStatusCodeLib.obj.deps -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=BaseReportStatusCodeLibNullStrings -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-microsoft-enum-forward-reference -fno-stack-protector -funsigned-char -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -Wno-null-dereference -mno-implicit-float -mms-bitfields -mno-stack-arg-probe -nostdlib -nostdlibinc -fseh-exceptions -m64 "-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=small -Oz -flto -target x86_64-unknown-windows-gnu -gcodeview -funwind-tables -D DISABLE_NEW_DEPRECATED_INTERFACES -D OC_TARGET_DEBUG=1 "-DANALYZER_UNREACHABLE=__builtin_unreachable" "-DANALYZER_NORETURN=__attribute__((noreturn))" -fstack-protector-strong -mstack-protector-guard=global -ftrivial-auto-var-init=pattern -c -o /root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull/OUTPUT/./BaseReportStatusCodeLib.obj -I/root/test/opencorepkg/UDK/MdePkg/Library/BaseReportStatusCodeLibNull -I/root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull/DEBUG -I/root/test/opencorepkg/UDK/MdePkg -I/root/test/opencorepkg/UDK/MdePkg/Include -I/root/test/opencorepkg/UDK/MdePkg/Test/UnitTest/Include -I/root/test/opencorepkg/UDK/MdePkg/Include/X64 /root/test/opencorepkg/UDK/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLib.c make: *** [GNUmakefile:326: /root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/OpenCorePkg/Library/OcCompilertrinsicsLib/OcCompilertrinsicsLib/OUTPUT/OcCompilertrinsicsLib.obj] Fehler 1 build.py... : error 7000: Failed to execute command make tbuild [/root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/OpenCorePkg/Library/OcCompilertrinsicsLib/OcCompilertrinsicsLib] build.py... : error 7000: Failed to execute command make tbuild [/root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/OpenCorePkg/Library/OcTimerLib/OcTimerLib] build.py... : error 7000: Failed to execute command make tbuild [/root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull] build.py... : error 7000: Failed to execute command make tbuild [/root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/OpenCorePkg/Library/OcDriverEntryPoint/UefiDriverEntryPoint] build.py... : error 7000: Failed to execute command make tbuild [/root/test/opencorepkg/UDK/Build/OpenCorePkg/DEBUG_CLANGPDB/X64/MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550] build.py... : error F002: Failed to build module /root/test/opencorepkg/UDK/OpenCorePkg/Library/OcCompilertrinsicsLib/OcCompilertrinsicsLib.inf [X64, CLANGPDB, DEBUG] - Failed - Build end time: 08:30:57, Feb.21 2023 Build total time: 00:00:06 Edited February 21, 2023 by Sascha_77 Link to comment Share on other sites More sharing options...
Recommended Posts