public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* EmulatorPkg/build.sh error, stdio.h not found (macOS Sierra 10.12.6)
@ 2017-10-17 20:44 Lekson, Nicholai (leksonnl)
  0 siblings, 0 replies; only message in thread
From: Lekson, Nicholai (leksonnl) @ 2017-10-17 20:44 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hello everyone,

I am attempting to compile an EDK2 environment for UEFI on macOS Sierra 10.12.6 using Xcode 9.0.1 (developer tools installed). I have made the fix to the build.sh file as outlined here: https://lists.01.org/pipermail/edk2-devel/2017-June/011719.html , so that XCODE5 is used, but upon flashing, I get the error that stdio.h is not found anywhere? I have perused the “gcc -v” command and I appear to have /usr/include as a valid include directory, but I am completely stumped as to why stdio.h is not picked up! I’m sure its something small, but nevertheless, here is a sample output.


LOG:
Last login: Tue Oct 17 16:41:49 on ttys000
Nicholais-MacBook-Pro:~ nicholai$ cd work
Nicholais-MacBook-Pro:work nicholai$ cd edk2
Nicholais-MacBook-Pro:edk2 nicholai$ EmulatorPkg/Build.sh
Initializing workspace
/Users/nicholai/work/edk2/BaseTools
Loading previous configuration from /Users/nicholai/work/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/nicholai/work/edk2
EDK_TOOLS_PATH: /Users/nicholai/work/edk2/BaseTools
CONF_PATH: /Users/nicholai/work/edk2/Conf
using prebuilt tools
Build environment: Darwin-16.7.0-x86_64-i386-64bit
Build start time: 16:42:04, Oct.17 2017

WORKSPACE        = /Users/nicholai/work/edk2
ECP_SOURCE       = /Users/nicholai/work/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/nicholai/work/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/nicholai/work/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/nicholai/work/edk2/BaseTools
CONF_PATH        = /Users/nicholai/work/edk2/Conf


Architecture(s)  = X64
Build target     = DEBUG
Toolchain        = XCODE5

Active Platform          = /Users/nicholai/work/edk2/EmulatorPkg/EmulatorPkg.dsc
Flash Image Definition   = /Users/nicholai/work/edk2/EmulatorPkg/EmulatorPkg.fdf

Processing meta-data .... done!
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf [X64]
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf [X64]
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/ThunkPpiList/ThunkPpiList.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/SecPeiServicesLib/SecPeiServicesLib.inf [X64]
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/Host.inf [X64]
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf [X64]
"clang" -target x86_64-pc-win32-macho -c -g -Os -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-implicit-float -mms-bitfields -Wno-unused-parameter -Wno-missing-braces -Wno-missing-field-initializers -Wno-tautological-compare -Wno-sign-compare -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -D NO_MSABI_VA_FUNCS  -I/Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/X11IncludeHack -o /Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/EmulatorPkg/Unix/Host/Host/OUTPUT/./Host.obj -I/Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/X64 -I/Users/nicholai/work/edk2/EmulatorPkg/Unix/Host -I/Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/EmulatorPkg/Unix/Host/Host/DEBUG -I/Users/nicholai/work/edk2/MdePkg -I/Users/nicholai/work/edk2/MdePkg/Include -I/Users/nicholai/work/edk2/MdePkg/Include/X64 -I/Users/nicholai/work/edk2/MdeModulePkg -I/Users/nicholai/work/edk2/MdeModulePkg/Include -I/Users/nicholai/work/edk2/EmulatorPkg -I/Users/nicholai/work/edk2/EmulatorPkg/Include /Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/Host.c
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf [X64]
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeiHobLib/PeiHobLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeiServicesLib/PeiServicesLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeiPcdLib/PeiPcdLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdePkg/Library/UefiLib/UefiLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf [X64]
"clang" -target x86_64-pc-win32-macho -c -g -Os -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-implicit-float -mms-bitfields -Wno-unused-parameter -Wno-missing-braces -Wno-missing-field-initializers -Wno-tautological-compare -Wno-sign-compare -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -D NO_MSABI_VA_FUNCS  -o /Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/MdePkg/Library/UefiLib/UefiLib/OUTPUT/./UefiLib.obj -I/Users/nicholai/work/edk2/MdePkg/Library/UefiLib -I/Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/MdePkg/Library/UefiLib/UefiLib/DEBUG -I/Users/nicholai/work/edk2/MdePkg -I/Users/nicholai/work/edk2/MdePkg/Include -I/Users/nicholai/work/edk2/MdePkg/Include/X64 /Users/nicholai/work/edk2/MdePkg/Library/UefiLib/UefiLib.c
make: Nothing to be done for `tbuild'.
Building ... /Users/nicholai/work/edk2/EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib.inf [X64]
"clang" -target x86_64-pc-win32-macho -c -g -Os -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-implicit-float -mms-bitfields -Wno-unused-parameter -Wno-missing-braces -Wno-missing-field-initializers -Wno-tautological-compare -Wno-sign-compare -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -D NO_MSABI_VA_FUNCS  -o /Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib/OUTPUT/./DxeCoreTimerLib.obj -I/Users/nicholai/work/edk2/EmulatorPkg/Library/DxeCoreTimerLib -I/Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib/DEBUG -I/Users/nicholai/work/edk2/MdePkg -I/Users/nicholai/work/edk2/MdePkg/Include -I/Users/nicholai/work/edk2/MdePkg/Include/X64 -I/Users/nicholai/work/edk2/EmulatorPkg -I/Users/nicholai/work/edk2/EmulatorPkg/Include /Users/nicholai/work/edk2/EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib.c
In file included from /Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/Host.c:15:
/Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/Host.h:28:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
make: *** [/Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/EmulatorPkg/Unix/Host/Host/OUTPUT/Host.obj] Error 1


build.py...
 : error 7000: Failed to execute command
make tbuild [/Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/EmulatorPkg/Unix/Host/Host]


build.py...
 : error 7000: Failed to execute command
make tbuild [/Users/nicholai/work/edk2/Build/Emulator/DEBUG_XCODE5/X64/MdePkg/Library/UefiLib/UefiLib]


build.py...
 : error F002: Failed to build module
/Users/nicholai/work/edk2/EmulatorPkg/Unix/Host/Host.inf [X64, XCODE5, DEBUG]

- Failed -
Build end time: 16:42:13, Oct.17 2017
Build total time: 00:00:09

Nicholais-MacBook-Pro:edk2 nicholai$


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-17 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 20:44 EmulatorPkg/build.sh error, stdio.h not found (macOS Sierra 10.12.6) Lekson, Nicholai (leksonnl)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox