Jump to content

Build_Clover.command, another Script to build standard Clover (or customized)


Micky1979
2,126 posts in this topic

Recommended Posts

25 minutes ago, camillionario said:

Thank you, although I'm not sure what I should modify.  I followed this guide to build Clover.

 

 

 

Just try it :) Changes are optional. I only edited it for my personal additions

  • Thanks 1
Link to comment
Share on other sites

On 9/17/2018 at 10:46 PM, tluck said:

not sure if this right place to post ... I tested out Xcode 10 GM ....

 

FYI, the basic build went fine  - but to make the pkg, had to make a few minor changes to CloverUpdater and CloverPrefpane to get them to build. 

 

4 files in total

install-updater.sh - has a syntax error on the 2nd declare .

CloverPrefpane.m - need a one line code fix on a casting issue

project.pbxproj - just set DEPLOYMENT TARGET to 10.13 vs 10.6 

 

this was just my quick and dirty way to get it done!

I built 4674 by Xcode10 without any modificatios in sources

Building CloverUpdater application...
[XCODE]
...
Building CloverPrefpane preference...
[XCODE]
================= Making all in boot1-install =================
...

 

  • Like 1
Link to comment
Share on other sites

22 hours ago, Slice said:

I built 4674 by Xcode10 without any modificatios in sources


Building CloverUpdater application...
[XCODE]
...
Building CloverPrefpane preference...
[XCODE]
================= Making all in boot1-install =================
...

 

yup. nevermind. got the same thing after i removed older SDKs. thanks

  • Like 2
Link to comment
Share on other sites

with the lastest udpdates on clover I cant compile.

 

================================================================================
Building Clover
                             <--------------------------------------------------
================================================================================
boot6
                             <--------------------------------------------------
TOOLCHAIN_DIR: /Users/exzo/src/opt/local
MTOC_PREFIX: /Users/exzo/src/opt/local/bin/
NASM_PREFIX: /Users/exzo/src/opt/local/bin/
NASM_VER: 2.13.03
Building from: /Users/exzo/src/edk2

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED --conf=/Users/exzo/src/edk2/Conf -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE8 -n 13 

Build environment: Darwin-18.0.0-x86_64-i386-64bit
Build start time: 16:01:23, Sep.28 2018

WORKSPACE        = /Users/exzo/src/edk2
ECP_SOURCE       = /Users/exzo/src/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/exzo/src/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/exzo/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/exzo/src/edk2/BaseTools
CONF_PATH        = /Users/exzo/src/edk2/Conf


Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = XCODE8

Active Platform          = /Users/exzo/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/exzo/src/edk2/Clover/Clover.fdf

Processing meta-data ................ done!
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseCpuLib/BaseCpuLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/Clover/Library/OpensslLib/OpensslLibNull.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf [X64]
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf [X64]
[CC] BaseReportStatusCodeLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf [X64]
[SLINK] BaseReportStatusCodeLibNull
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf [X64]
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf [X64]
[CC] OpensslLibNull
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf [X64]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/Library/OpensslLib/OpensslLibNull/OUTPUT/OpensslLibNull.obj has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/Library/OpensslLib/OpensslLibNull/OUTPUT/OpensslLib.lib the table of contents is empty (no object file members in the library define global symbols)
[SLINK] OpensslLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf [X64]
[CC] ScanMem64Wrapper
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf [X64]
[CC] UefiShellInstall1CommandsLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf [X64]
[SLINK] UefiShellInstall1CommandsLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf [X64]
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf [X64]
[CC] SetSize
[CC] ScanMem32Wrapper
[CC] Type
[CC] UefiShellLevel1CommandsLib
[CC] Connect
[CC] UefiShellLevel2CommandsLib
[CC] SafeString
[CC] UefiHiiServicesLib
[CC] ScanMem16Wrapper
[SLINK] UefiHiiServicesLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf [X64]
[CC] UefiShellNetwork2CommandsLib
[CC] Exit
[CC] ScanMem8Wrapper
[CC] Touch
[CC] Devices
[CC] Comp
[CC] UefiShellNetwork1CommandsLib
[CC] Goto
[CC] ZeroMemWrapper
[CC] Ver
[CC] String
[CC] TimeDate
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (LongJump.obj) in output file used for input files: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj and: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/LongJump.obj (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (SetJump.obj) in output file used for input files: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/SetJump.obj and: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SetJump.obj (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (SwitchStack.obj) in output file used for input files: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SwitchStack.obj and: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/SwitchStack.obj (due to use of basename, truncation, blank padding or duplicate input files)
[CC] CompareMemWrapper
[SLINK] BaseLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.inf [X64]
[CC] OpenInfo
[CC] Mode
[CC] UefiShellBcfgCommandLib
[CC] UefiShellCommandLib
[CC] Ping6
[CC] UefiShellLevel3CommandsLib
[CC] SetMem64Wrapper
[CC] Load
/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:488:1: error: conflicting types for 'ShellOpenFileByDevicePath'
ShellOpenFileByDevicePath(
^
/Users/exzo/src/edk2/ShellPkg/Include/Library/ShellLib.h:115:1: note: previous declaration is here
ShellOpenFileByDevicePath(
^
[CC] AutoGen
/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:774:39: error: too many arguments to function call, expected 4, have 5
                                      Attributes));
                                      ^~~~~~~~~~
/Users/exzo/src/edk2/ShellPkg/Include/Library/ShellLib.h:113:1: note: 'ShellOpenFileByDevicePath' declared here
EFI_STATUS
^
[CC] DxeNetLib
[SLINK] UefiShellBcfgCommandLib
Building ... /Users/exzo/src/edk2/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf [X64]
2 errors generated.
make: *** [/Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib/OUTPUT/UefiShellLib.obj] Error 1
[CC] Disconnect


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib]


build.py...
 : error F002: Failed to build module
	/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 16:01:48, Sep.28 2018
Build total time: 00:00:25


o_Ops, ./ebuild.sh exited with error(s), aborting..

can anybody help me?

Link to comment
Share on other sites

30 minutes ago, stinga11 said:

with the lastest udpdates on clover I cant compile.

 


================================================================================
Building Clover
                             <--------------------------------------------------
================================================================================
boot6
                             <--------------------------------------------------
TOOLCHAIN_DIR: /Users/exzo/src/opt/local
MTOC_PREFIX: /Users/exzo/src/opt/local/bin/
NASM_PREFIX: /Users/exzo/src/opt/local/bin/
NASM_VER: 2.13.03
Building from: /Users/exzo/src/edk2

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED --conf=/Users/exzo/src/edk2/Conf -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE8 -n 13 

Build environment: Darwin-18.0.0-x86_64-i386-64bit
Build start time: 16:01:23, Sep.28 2018

WORKSPACE        = /Users/exzo/src/edk2
ECP_SOURCE       = /Users/exzo/src/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/exzo/src/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/exzo/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/exzo/src/edk2/BaseTools
CONF_PATH        = /Users/exzo/src/edk2/Conf


Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = XCODE8

Active Platform          = /Users/exzo/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/exzo/src/edk2/Clover/Clover.fdf

Processing meta-data ................ done!
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
make: Nothing to be done for `tbuild'.
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/MdePkg/Library/BaseCpuLib/BaseCpuLib.inf [X64]
make: Nothing to be done for `tbuild'.
Building ... /Users/exzo/src/edk2/Clover/Library/OpensslLib/OpensslLibNull.inf [X64]
Building ... /Users/exzo/src/edk2/MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf [X64]
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf [X64]
[CC] BaseReportStatusCodeLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf [X64]
[SLINK] BaseReportStatusCodeLibNull
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf [X64]
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf [X64]
[CC] OpensslLibNull
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf [X64]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/Library/OpensslLib/OpensslLibNull/OUTPUT/OpensslLibNull.obj has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/Library/OpensslLib/OpensslLibNull/OUTPUT/OpensslLib.lib the table of contents is empty (no object file members in the library define global symbols)
[SLINK] OpensslLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf [X64]
[CC] ScanMem64Wrapper
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf [X64]
[CC] UefiShellInstall1CommandsLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf [X64]
[SLINK] UefiShellInstall1CommandsLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf [X64]
Building ... /Users/exzo/src/edk2/MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf [X64]
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf [X64]
[CC] SetSize
[CC] ScanMem32Wrapper
[CC] Type
[CC] UefiShellLevel1CommandsLib
[CC] Connect
[CC] UefiShellLevel2CommandsLib
[CC] SafeString
[CC] UefiHiiServicesLib
[CC] ScanMem16Wrapper
[SLINK] UefiHiiServicesLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf [X64]
[CC] UefiShellNetwork2CommandsLib
[CC] Exit
[CC] ScanMem8Wrapper
[CC] Touch
[CC] Devices
[CC] Comp
[CC] UefiShellNetwork1CommandsLib
[CC] Goto
[CC] ZeroMemWrapper
[CC] Ver
[CC] String
[CC] TimeDate
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (LongJump.obj) in output file used for input files: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/LongJump.obj and: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/LongJump.obj (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (SetJump.obj) in output file used for input files: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/SetJump.obj and: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SetJump.obj (due to use of basename, truncation, blank padding or duplicate input files)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (SwitchStack.obj) in output file used for input files: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/SwitchStack.obj and: /Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib/OUTPUT/X64/SwitchStack.obj (due to use of basename, truncation, blank padding or duplicate input files)
[CC] CompareMemWrapper
[SLINK] BaseLib
Building ... /Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.inf [X64]
[CC] OpenInfo
[CC] Mode
[CC] UefiShellBcfgCommandLib
[CC] UefiShellCommandLib
[CC] Ping6
[CC] UefiShellLevel3CommandsLib
[CC] SetMem64Wrapper
[CC] Load
/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:488:1: error: conflicting types for 'ShellOpenFileByDevicePath'
ShellOpenFileByDevicePath(
^
/Users/exzo/src/edk2/ShellPkg/Include/Library/ShellLib.h:115:1: note: previous declaration is here
ShellOpenFileByDevicePath(
^
[CC] AutoGen
/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:774:39: error: too many arguments to function call, expected 4, have 5
                                      Attributes));
                                      ^~~~~~~~~~
/Users/exzo/src/edk2/ShellPkg/Include/Library/ShellLib.h:113:1: note: 'ShellOpenFileByDevicePath' declared here
EFI_STATUS
^
[CC] DxeNetLib
[SLINK] UefiShellBcfgCommandLib
Building ... /Users/exzo/src/edk2/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf [X64]
2 errors generated.
make: *** [/Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib/OUTPUT/UefiShellLib.obj] Error 1
[CC] Disconnect


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib]


build.py...
 : error F002: Failed to build module
	/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 16:01:48, Sep.28 2018
Build total time: 00:00:25


o_Ops, ./ebuild.sh exited with error(s), aborting..

can anybody help me?

same issue, latest 4.9.2 + clover 4679 +edk2 27956 + Xcode 10

Link to comment
Share on other sites

2 hours ago, stinga11 said:

Greetings, I downloaded the latest version of "https://github.com/acidanthera/EfiPkg" as the clover does not compile.

 

@savvas has update (merge) AptioFixPkg, also download latest version of "https://github.com/acidanthera/EfiPkg" isn't necessary, anymore.

 

Same error here with EDK2 Clover files 

 

[CC] Load
/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:488:1: error: conflicting types for 'ShellOpenFileByDevicePath'
ShellOpenFileByDevicePath(
^
/Users/exzo/src/edk2/ShellPkg/Include/Library/ShellLib.h:115:1: note: previous declaration is here
ShellOpenFileByDevicePath(
^
[CC] AutoGen
/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:774:39: error: too many arguments to function call, expected 4, have 5
                                      Attributes));
                                      ^~~~~~~~~~
/Users/exzo/src/edk2/ShellPkg/Include/Library/ShellLib.h:113:1: note: 'ShellOpenFileByDevicePath' declared here
EFI_STATUS
^
[CC] DxeNetLib
[SLINK] UefiShellBcfgCommandLib
Building ... /Users/exzo/src/edk2/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf [X64]
2 errors generated.
make: *** [/Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib/OUTPUT/UefiShellLib.obj] Error 1
[CC] Disconnect


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/exzo/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib]


build.py...
 : error F002: Failed to build module
	/Users/exzo/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 16:01:48, Sep.28 2018
Build total time: 00:00:25


o_Ops, ./ebuild.sh exited with error(s), aborting..

 

Edited by Matgen84
Link to comment
Share on other sites

I think my error is the same after updating the Script and EDK2 revision:

================================================================================
Build_Clover script v4.9.1                             Update available (v4.9.2)
                             <--------------------------------------------------
================================================================================
                        What's New in Version 4.9.2?

Sync with EDK2 r27956
================================================================================
================================================================================
Build_Clover script v4.9.2                                  No update available.
                             <--------------------------------------------------
================================================================================
By Micky1979 based on Slice, apianti, vit9696, Download Fritz, Zenith432,
STLVNUB, JrCs,cecekpawon, Needy, cvad, Rehabman, philip_petev, ErmaC

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie and Stretch
                             <--------------------------------------------------
CLOVER	Remote revision: 4679	Local revision: 4674
EDK2	Remote revision: 28026	Local revision: 27429

The current local EDK2 revision is not the suggested one (27956)!
It's recommended to change it to the suggested one,
using the update Clover + force edk2 update option!
Used settings: /Users/dan/BuildCloverConfig.txt 
[CC] Dmem
/Users/dan/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:488:1: error: conflicting types for 'ShellOpenFileByDevicePath'
ShellOpenFileByDevicePath(
^
/Users/dan/src/edk2/ShellPkg/Include/Library/ShellLib.h:115:1: note: previous declaration is here
ShellOpenFileByDevicePath(
^
/Users/dan/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.c:774:39: error: too many arguments to function call, expected 4, have 5
                                      Attributes));
                                      ^~~~~~~~~~
/Users/dan/src/edk2/ShellPkg/Include/Library/ShellLib.h:113:1: note: 'ShellOpenFileByDevicePath' declared here
EFI_STATUS
^
[CC] UefiShellCommandLib
2 errors generated.
make: *** [/Users/dan/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib/OUTPUT/UefiShellLib.obj] Error 1


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/edk2/Build/Clover/RELEASE_XCODE8/X64/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib]


build.py...
 : error F002: Failed to build module
	/Users/dan/src/edk2/Clover/ShellPkg/Library/UefiShellLib/UefiShellLib.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 07:34:13, Sep.29 2018
Build total time: 00:00:18


o_Ops, ./ebuild.sh exited with error(s), aborting..

 

  • Like 1
Link to comment
Share on other sites

6 minutes ago, Zenith432 said:

Sorry about that.  I don't build the shell so it slipped by.  There's a divergence in prototype of ShellOpenFileByDevicePath between UDK2018 and EDK2.  Update to Clover r4680 and reapply Patches_For_EDK2.

 

r4680 built was successful using v4.9.2 Thanks. 

 

Spoiler

 

Build info.
 ===========
  Package name: Clover_v2.4k_r4680.pkg
  MD5:          e0aaaf5af98a4940d427bd2c13f9107d
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2018-09-29 14:01:58
  Built by:     cyberdevs
  Copyright     2012-2018

  adding: Clover_v2.4k_r4680.pkg (deflated 0%)
  adding: Clover_v2.4k_r4680.pkg.md5 (stored 0%)
total 47688
drwxr-xr-x   9 cyberdevs  staff       288 Sep 29 14:03 .
drwxr-xr-x  15 cyberdevs  staff       480 Sep 29 14:03 ..
-rw-r--r--@  1 cyberdevs  staff  12002349 Sep 29 14:03 Clover_v2.4k_r4680.pkg
-rw-r--r--   1 cyberdevs  staff        68 Sep 29 14:03 Clover_v2.4k_r4680.pkg.md5
-rw-r--r--   1 cyberdevs  staff  11951751 Sep 29 14:03 Clover_v2.4k_r4680.zip
drwxr-xr-x   3 cyberdevs  staff        96 Sep 29 14:02 Resources
drwxr-xr-x   6 cyberdevs  staff       192 Sep 29 14:02 build
drwxr-xr-x   3 cyberdevs  staff        96 Sep 29 14:03 package
drwxr-xr-x   6 cyberdevs  staff       192 Sep 29 14:02 utils
================================================================================

Clover was built successfully!
Press any key to continue...

 

 

  • Like 1
Link to comment
Share on other sites

3 hours ago, Zenith432 said:

Sorry about that.  I don't build the shell so it slipped by.  There's a divergence in prototype of ShellOpenFileByDevicePath between UDK2018 and EDK2.  Update to Clover r4680 and reapply Patches_For_EDK2.

 

As @Cyberdevs commit r4680 is successfully build with 4.9.2 script. Thanks a lot. 

  • Like 1
Link to comment
Share on other sites

Anyway Virtualsmc.efi can be added to script? I know it requires a kext as well but can that be added as well?
I’m using v1.0.0 of virtualsmc kext + efi without issues. No need FakeSMC anymore.


Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

4 hours ago, SavageAUS said:

Anyway Virtualsmc.efi can be added to script? I know it requires a kext as well but can that be added as well?
I’m using v1.0.0 of virtualsmc kext + efi without issues. No need FakeSMC anymore.


Sent from my iPhone using Tapatalk

 

Good Idea :) VirtualSMC.efi is just for FileVault 2 users. Only VirtualSMC.kext is enough if you want just replace FakeSMC.

Link to comment
Share on other sites

The Error 65 is back

Spoiler

================================================================================
MAKE PKG
                             <--------------------------------------------------

========= Translating Resources ========
/Users/philip/src/edk2/Clover/CloverPackage/package/../../../../opt/local
Updating 'en' strings file for CloverUpdater... done
Updating 'en' strings file for Clover Preference Panel... done
Updating strings file for Clover Preference Panel... done

Updating 'en' strings file for CloverUpdater... done
Generating de interface... done
Generating es interface... done
Generating fr interface... done
Generating hr interface... done
Generating id interface... done
Generating it interface... done
Generating ja interface... done
Generating ko interface... done
Generating lv interface... done
Generating nl interface... done
Generating pl interface... done
Generating pt-BR interface... done
Generating pt interface... done
Generating ro interface... done
Generating ru interface... done
Generating tr interface... done
Generating uk interface... done
Generating vi interface... done
Generating zh_CN interface... done
Generating zh_TW interface... done
Building CloverUpdater application...
** BUILD FAILED **


The following build commands failed:
    Ld /Users/philip/src/edk2/Clover/CloverPackage/CloverUpdater/build/CloverUpdater.app/Contents/MacOS/CloverUpdater normal x86_64
(1 failure)
make[1]: *** [CloverUpdater] Error 65
make: *** [pkg] Error 2

o_Ops, MAKE PKG exited with error(s), aborting..

Happens to me since I updated Xcode to v.10. This is on High Sierra.

  • Like 1
Link to comment
Share on other sites

2 hours ago, Philip Petev said:

The Error 65 is back

  Reveal hidden contents

================================================================================
MAKE PKG
                             <--------------------------------------------------

========= Translating Resources ========
/Users/philip/src/edk2/Clover/CloverPackage/package/../../../../opt/local
Updating 'en' strings file for CloverUpdater... done
Updating 'en' strings file for Clover Preference Panel... done
Updating strings file for Clover Preference Panel... done

Updating 'en' strings file for CloverUpdater... done
Generating de interface... done
Generating es interface... done
Generating fr interface... done
Generating hr interface... done
Generating id interface... done
Generating it interface... done
Generating ja interface... done
Generating ko interface... done
Generating lv interface... done
Generating nl interface... done
Generating pl interface... done
Generating pt-BR interface... done
Generating pt interface... done
Generating ro interface... done
Generating ru interface... done
Generating tr interface... done
Generating uk interface... done
Generating vi interface... done
Generating zh_CN interface... done
Generating zh_TW interface... done
Building CloverUpdater application...
** BUILD FAILED **


The following build commands failed:
    Ld /Users/philip/src/edk2/Clover/CloverPackage/CloverUpdater/build/CloverUpdater.app/Contents/MacOS/CloverUpdater normal x86_64
(1 failure)
make[1]: *** [CloverUpdater] Error 65
make: *** [pkg] Error 2

o_Ops, MAKE PKG exited with error(s), aborting..

Happens to me since I updated Xcode to v.10. This is on High Sierra.

On Mojave and Xcode 10 I have no issue, maybe this is related to High Sierra and Xcode 10?

Link to comment
Share on other sites

8 hours ago, Philip Petev said:

The Error 65 is back

  Reveal hidden contents

================================================================================
MAKE PKG
                             <--------------------------------------------------

========= Translating Resources ========
/Users/philip/src/edk2/Clover/CloverPackage/package/../../../../opt/local
Updating 'en' strings file for CloverUpdater... done
Updating 'en' strings file for Clover Preference Panel... done
Updating strings file for Clover Preference Panel... done

Updating 'en' strings file for CloverUpdater... done
Generating de interface... done
Generating es interface... done
Generating fr interface... done
Generating hr interface... done
Generating id interface... done
Generating it interface... done
Generating ja interface... done
Generating ko interface... done
Generating lv interface... done
Generating nl interface... done
Generating pl interface... done
Generating pt-BR interface... done
Generating pt interface... done
Generating ro interface... done
Generating ru interface... done
Generating tr interface... done
Generating uk interface... done
Generating vi interface... done
Generating zh_CN interface... done
Generating zh_TW interface... done
Building CloverUpdater application...
** BUILD FAILED **


The following build commands failed:
    Ld /Users/philip/src/edk2/Clover/CloverPackage/CloverUpdater/build/CloverUpdater.app/Contents/MacOS/CloverUpdater normal x86_64
(1 failure)
make[1]: *** [CloverUpdater] Error 65
make: *** [pkg] Error 2

o_Ops, MAKE PKG exited with error(s), aborting..

Happens to me since I updated Xcode to v.10. This is on High Sierra.

 

No issues here with Xcode 10 on High Sierra. I had to do a clean "src" installation to go from EDK2 revision 27429 to r27956. 

 

The script merge and resolve conflicts for some .po files. Result Output attached.

Résultat de Terminal.zip

Link to comment
Share on other sites

×
×
  • Create New...